Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def transcribe_audio(input_file, language,chunk_length_s=10,
|
|
25 |
|
26 |
|
27 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
28 |
-
target_lang_code = target_lang_options[
|
29 |
|
30 |
# Determine the model_id based on the language
|
31 |
if target_lang_code == "eng":
|
|
|
25 |
|
26 |
|
27 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
28 |
+
target_lang_code = target_lang_options[language]
|
29 |
|
30 |
# Determine the model_id based on the language
|
31 |
if target_lang_code == "eng":
|