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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -24,7 +24,6 @@ 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("ful")
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
 
28
  inputs = processor(speech, sampling_rate=16_000, return_tensors="pt")
29