Skip to content

Commit

Permalink
Fix issue in model download
Browse files Browse the repository at this point in the history
  • Loading branch information
aalramadan committed Jul 11, 2024
1 parent 0d38161 commit 7d74666
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compile/build.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Build (Windows):
pyinstaller --windowed --hidden-import=tqdm --hidden-import=faster-whisper --icon="C:\Users\Ali\Desktop\TransVisio\images\images\icon.ico" main.py
pyinstaller --windowed --icon="C:\Users\Ali\Desktop\TransVisio\images\images\icon.ico" main.py

Build (Mac OS):
pyinstaller --onefile --windowed --icon="/Users/Ali/Desktop/TransVisio/images/images/icon.icns" main.py
Expand Down
2 changes: 1 addition & 1 deletion ui_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def extract_text_from_video(main_window, selected_file, api_key_whisper):
return output
else:
device = 'gpu' if cuda.is_available() else 'cpu'
model = WhisperModel(main_window.combo_model_size.currentText(), device=device)
model = WhisperModel(main_window.combo_model_size.currentText(), device=device, download_root=path.dirname(selected_file))
output, info = model.transcribe(filename)
srt_string = ""
for i, segment in enumerate(output):
Expand Down

0 comments on commit 7d74666

Please sign in to comment.