Purfview / whisper-standalone-win

Whisper & Faster-Whisper standalone executables for those who don't want to bother with Python.
1.15k stars 59 forks source link

can you share the script to build the executable app #16

Closed iorilu closed 1 year ago

iorilu commented 1 year ago

actually i also tried to build exe file using faster-whisper, but after i use pyinstaller to build it , the folder size is very huge , only torch cost 4G space

but your package seems very small , even add torch is only 1G , so i wonder how you did it.

it will be appreciated if you can share the build script like .spec file usd by pytinstaller or others.

if you don't want to post it publicly , you can send to my email: somesun@gmail.com, thanks

Purfview commented 1 year ago

Torch is not need for faster-whisper, just remove it from your script.

even add torch is only 1G

It's for OpneAI's Whisper, not for faster-whisper.

iorilu commented 1 year ago

ok , I will try to remove torch before build , i thought torch is required for GPU execution

how did you do to pack everything into one exe file?

Purfview commented 1 year ago

how did you do to pack everything into one exe file?

https://pyinstaller.org/en/stable/usage.html?highlight=onefile#cmdoption-F

iorilu commented 1 year ago

thanks for the info I tested some videos, it seems yours are better than defaluts, could you share the source code if possible , since I also want to buiid a version for my personal use, maybe be add some other features.

Purfview commented 1 year ago

Check it there: https://github.com/Purfview/whisper-standalone-win/blob/e0472ddaa51ca0c5ff9775dcdc589e1ab878c28f/faster-whisper%20cli/__main__.py