mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-26 13:45:16 -07:00
Enhance provider packaging and CUDA download functionality
- Added support for packaging provider archives in the release workflow, creating platform-specific zip and tar.gz files for distribution. - Updated the `.gitignore` to exclude `.spec` files. - Introduced a new `CudaDownloadSection` component to manage CUDA downloads, including progress tracking and error handling. - Refactored provider download logic to handle archive extraction and cleanup after download. - Improved subprocess output handling in the provider manager for better logging and error reporting.
This commit is contained in:
@@ -16,7 +16,7 @@ def build_provider():
|
||||
# PyInstaller arguments
|
||||
args = [
|
||||
'main.py',
|
||||
'--onefile',
|
||||
'--onedir', # Changed from --onefile to work around Windows extraction issues
|
||||
'--name', 'tts-provider-pytorch-cpu',
|
||||
]
|
||||
|
||||
@@ -51,6 +51,18 @@ def build_provider():
|
||||
'--collect-submodules', 'jaraco',
|
||||
'--hidden-import', 'fastapi',
|
||||
'--hidden-import', 'uvicorn',
|
||||
# Critical uvicorn imports for PyInstaller
|
||||
'--hidden-import', 'uvicorn.logging',
|
||||
'--hidden-import', 'uvicorn.loops',
|
||||
'--hidden-import', 'uvicorn.loops.auto',
|
||||
'--hidden-import', 'uvicorn.protocols',
|
||||
'--hidden-import', 'uvicorn.protocols.http',
|
||||
'--hidden-import', 'uvicorn.protocols.http.auto',
|
||||
'--hidden-import', 'uvicorn.protocols.websockets',
|
||||
'--hidden-import', 'uvicorn.protocols.websockets.auto',
|
||||
'--hidden-import', 'uvicorn.lifespan',
|
||||
'--hidden-import', 'uvicorn.lifespan.on',
|
||||
'--collect-submodules', 'uvicorn',
|
||||
'--hidden-import', 'soundfile',
|
||||
'--hidden-import', 'numpy',
|
||||
'--hidden-import', 'librosa',
|
||||
|
||||
Reference in New Issue
Block a user