Spaces:
Build error
Build error
Update app.py
Browse files
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(
|
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 |
|