fix device
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ target_language = "fr"
|
|
14 |
|
15 |
# load speech translation checkpoint
|
16 |
asr_pipe = pipeline("automatic-speech-recognition", model="bofenghuang/whisper-small-cv11-french", device=device)
|
17 |
-
translation_model = M2M100ForConditionalGeneration.from_pretrained("alirezamsh/small100"
|
18 |
translation_tokenizer = SMALL100Tokenizer.from_pretrained("alirezamsh/small100", tgt_lang=target_language)
|
19 |
|
20 |
# load text-to-speech checkpoint
|
|
|
14 |
|
15 |
# load speech translation checkpoint
|
16 |
asr_pipe = pipeline("automatic-speech-recognition", model="bofenghuang/whisper-small-cv11-french", device=device)
|
17 |
+
translation_model = M2M100ForConditionalGeneration.from_pretrained("alirezamsh/small100")
|
18 |
translation_tokenizer = SMALL100Tokenizer.from_pretrained("alirezamsh/small100", tgt_lang=target_language)
|
19 |
|
20 |
# load text-to-speech checkpoint
|