diff --git a/compile/build.txt b/compile/build.txt index 609d0fb..5354afa 100644 --- a/compile/build.txt +++ b/compile/build.txt @@ -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 diff --git a/ui_functions.py b/ui_functions.py index 0b42925..a7f540b 100644 --- a/ui_functions.py +++ b/ui_functions.py @@ -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):