akera commited on
Commit
22fe498
·
verified ·
1 Parent(s): 1189a51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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[target_lang_code]
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":