mirror of
https://github.com/chidiwilliams/buzz.git
synced 2026-03-14 22:55:46 +01:00
Update build files
This commit is contained in:
parent
16c95db1f1
commit
eb9744773e
3 changed files with 19 additions and 3 deletions
19
Buzz.spec
19
Buzz.spec
|
|
@ -1,4 +1,18 @@
|
|||
# -*- mode: python ; coding: utf-8 -*-
|
||||
from PyInstaller.utils.hooks import collect_data_files, copy_metadata
|
||||
|
||||
datas = []
|
||||
datas += collect_data_files('torch')
|
||||
datas += copy_metadata('tqdm')
|
||||
datas += copy_metadata('torch')
|
||||
datas += copy_metadata('tqdm')
|
||||
datas += copy_metadata('regex')
|
||||
datas += copy_metadata('requests')
|
||||
datas += copy_metadata('packaging')
|
||||
datas += copy_metadata('filelock')
|
||||
datas += copy_metadata('numpy')
|
||||
datas += copy_metadata('tokenizers')
|
||||
datas += collect_data_files('whisper')
|
||||
|
||||
|
||||
block_cipher = None
|
||||
|
|
@ -8,8 +22,9 @@ a = Analysis(
|
|||
['main.py'],
|
||||
pathex=[],
|
||||
binaries=[],
|
||||
datas=[],
|
||||
hiddenimports=[],
|
||||
datas=datas,
|
||||
hiddenimports=['googleapiclient', 'apiclient', 'pytorch', '“sklearn.utils._cython_blas”',
|
||||
'“sklearn.neighbors.typedefs”', '“sklearn.neighbors.quad_tree”', '“sklearn.tree”', '“sklearn.tree._utils”'],
|
||||
hookspath=[],
|
||||
hooksconfig={},
|
||||
runtime_hooks=[],
|
||||
|
|
|
|||
2
Makefile
2
Makefile
|
|
@ -1,2 +1,2 @@
|
|||
buzz:
|
||||
pyinstaller --name 'Buzz' --windowed main.py
|
||||
pyinstaller --noconfirm Buzz.spec
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ class Transcriber:
|
|||
result = self.model.transcribe(
|
||||
audio=chunk_path, language="en")
|
||||
|
||||
# TODO: this should probably be a callback or output buffer
|
||||
print(result["text"])
|
||||
|
||||
os.remove(chunk_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue