yaya-sy commited on
Commit
c87413c
1 Parent(s): 37899af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def transcribe(audio_file_mic=None, audio_file_upload=None):
24
 
25
  # Keep the same model in memory and simply switch out the language adapters by calling load_adapter() for the model and set_target_lang() for the tokenizer
26
  processor.tokenizer.set_target_lang("ful")
27
- model.load_adapter(language_code)
28
 
29
  inputs = processor(speech, sampling_rate=16_000, return_tensors="pt")
30
 
 
24
 
25
  # Keep the same model in memory and simply switch out the language adapters by calling load_adapter() for the model and set_target_lang() for the tokenizer
26
  processor.tokenizer.set_target_lang("ful")
27
+ model.load_adapter("ful")
28
 
29
  inputs = processor(speech, sampling_rate=16_000, return_tensors="pt")
30