From 6259bd8018f92021bd4b8645fc59c008e6d6272c Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Mon, 5 Feb 2024 22:07:55 -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 720fad8..565d417 100644 --- a/subgen/subgen.py +++ b/subgen/subgen.py @@ -51,7 +51,6 @@ 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 @@ -476,6 +475,7 @@ def path_mapping(fullpath): return fullpath def transcribe_existing(): + transcribe_folders = transcribe_folders.split("|") print("Starting to search folders to see if we need to create subtitles.") logging.debug("The folders are:") for path in transcribe_folders: