From c8d259420df6faeff91a9bd6ec5c1589e6d738a5 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Tue, 12 Mar 2024 21:46:18 -0600 Subject: [PATCH] Updates on detect-language --- subgen/subgen.py | 1 + 1 file changed, 1 insertion(+) diff --git a/subgen/subgen.py b/subgen/subgen.py index b55c947..5bb1a08 100644 --- a/subgen/subgen.py +++ b/subgen/subgen.py @@ -348,6 +348,7 @@ def detect_language( audio_file: UploadFile = File(...), #encode: bool = Query(default=True, description="Encode audio first through ffmpeg") # This is always false from Bazarr ): + detected_lang_code = "" # Initialize with an empty string try: #give the 'process' a random name so mutliple Bazaar transcribes can operate at the same time. random_name = random.choices("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", k=6)