Fix mlx._reprlib_fix hidden import in build.sh
This commit is contained in:
19
build.sh
19
build.sh
@@ -16,14 +16,17 @@ fi
|
|||||||
# --onefile: Bundle into a single executable
|
# --onefile: Bundle into a single executable
|
||||||
# --collect-all: Ensure all sub-dependencies of heavy libraries are included
|
# --collect-all: Ensure all sub-dependencies of heavy libraries are included
|
||||||
# --hidden-import: Explicitly include libraries that might be missed by static analysis
|
# --hidden-import: Explicitly include libraries that might be missed by static analysis
|
||||||
pyinstaller --onefile
|
# Added --collect-all mlx and --hidden-import mlx._reprlib_fix to solve the runtime error
|
||||||
--name whisper-transcribe
|
pyinstaller --onefile \
|
||||||
--collect-all mlx_whisper
|
--name whisper-transcribe \
|
||||||
--collect-all transformers
|
--collect-all mlx \
|
||||||
--collect-all silero_vad
|
--collect-all mlx_whisper \
|
||||||
--collect-all torch
|
--collect-all transformers \
|
||||||
--hidden-import=sacremoses
|
--collect-all silero_vad \
|
||||||
--hidden-import=joblib
|
--collect-all torch \
|
||||||
|
--hidden-import=mlx._reprlib_fix \
|
||||||
|
--hidden-import=sacremoses \
|
||||||
|
--hidden-import=joblib \
|
||||||
transcribe.py
|
transcribe.py
|
||||||
|
|
||||||
echo "--- Build Complete ---"
|
echo "--- Build Complete ---"
|
||||||
|
|||||||
Reference in New Issue
Block a user