From ff8b465ebd53ffc91827d4e0b82b03d983aec1da Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Mon, 5 Feb 2024 11:26:15 -0700 Subject: [PATCH] Update subgen.py --- subgen/subgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subgen/subgen.py b/subgen/subgen.py index 7780a0e..a1297c5 100644 --- a/subgen/subgen.py +++ b/subgen/subgen.py @@ -53,6 +53,7 @@ transcribe_or_translate = os.getenv('TRANSCRIBE_OR_TRANSLATE', 'translate') compute_type = os.getenv('COMPUTE_TYPE', 'auto') if transcribe_device == "gpu": transcribe_device = "cuda" +transcribe_folders = transcribe_folders.split("|") app = FastAPI() model = None @@ -485,7 +486,6 @@ def transcribe_existing(): print("Finished searching and queueing files for transcription") if transcribe_folders: - transcribe_folders = transcribe_folders.split("|") transcribe_existing() whisper_languages = {