Skip to content

Commit 31d87b8

Browse files
committed
Added new whisper workaround to import assets into application path.
1 parent 7c09c87 commit 31d87b8

File tree

5 files changed

+100518
-4
lines changed

5 files changed

+100518
-4
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ jobs:
3030
if: matrix.os == 'macos-latest'
3131
run: |
3232
pip install pillow
33-
pyinstaller --onefile --name Scriptify --icon web/favicon.ico --add-data "ffmpeg/ffmpeg_mac.zip:ffmpeg" --add-data "whisper:whisper" \
33+
pyinstaller --onefile --name Scriptify --icon web/favicon.ico --add-data "ffmpeg/ffmpeg_mac.zip:ffmpeg" --hidden-import="whisper" --add-data "whisper:whisper" \
3434
--add-data "web:web" --add-data "js:js" --add-data "index.html:." --add-data "launch.html:." --add-data "style.css:." \
3535
--osx-bundle-identifier com.infinitode.scriptify --windowed main.py --version-file version_info.txt
3636
3737
- name: Build for Linux
3838
if: matrix.os == 'ubuntu-latest'
3939
run: |
40-
pyinstaller --onefile --name Scriptify --icon web/favicon.ico --add-data "ffmpeg/ffmpeg_ubuntu.zip:ffmpeg" --add-data "whisper:whisper" \
40+
pyinstaller --onefile --name Scriptify --icon web/favicon.ico --add-data "ffmpeg/ffmpeg_ubuntu.zip:ffmpeg" --hidden-import="whisper" --add-data "whisper:whisper" --exclude-module tkinter --exclude-module PyQt5 \
4141
--add-data "web:web" --add-data "js:js" --add-data "index.html:." --add-data "launch.html:." --add-data "style.css:." \
4242
--windowed main.py --version-file version_info.txt
4343
@@ -46,7 +46,7 @@ jobs:
4646
- name: Build for Windows
4747
if: matrix.os == 'windows-latest'
4848
run: |
49-
pyinstaller --onefile --name Scriptify --icon web/favicon.ico --add-data "ffmpeg/ffmpeg_windows.zip:ffmpeg" --hidden-import="whisper" `
49+
pyinstaller --onefile --name Scriptify --icon web/favicon.ico --add-data "ffmpeg/ffmpeg_windows.zip:ffmpeg" --hidden-import="whisper" --add-data "whisper:whisper" `
5050
--add-data "web:web" --add-data "js:js" --add-data "index.html:." --add-data "launch.html:." --add-data "style.css:." `
5151
main.py --version-file version_info.txt
5252

launch.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ <h1>Scriptify startup</h1>
154154
</div>
155155
<br>
156156
<p>*Larger models require more computational power to run. Once the model is downloaded,<br> we'll automatically
157-
set it up and use it for Speech to Text.<br>- You can use any model available through OpenAI's Whisper repository on GitHub.<br>- You can remove larger models to save storage space.</p>
157+
set it up and use it for Speech to Text.<br>- You can find the downloaded models inside the <span
158+
class="key">/models</span> folder.<br>- You can remove larger models to save storage space.</p>
158159
<br><br>
159160
<p class="subcol"><i>*You'll need <span id="vram">~0GB</span> of VRAM to run this model. This model is <span
160161
id="speed">~0X</span> the relative speed.</i></p>

0 commit comments

Comments
 (0)