try new finetuned whisper model
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
|
13 |
target_language = "fr"
|
14 |
|
15 |
# load speech translation checkpoint
|
16 |
-
asr_pipe = pipeline("automatic-speech-recognition", model="
|
17 |
# whisper_model_name = "openai/whisper-small"
|
18 |
# whisper_processor = WhisperProcessor.from_pretrained(whisper_model_name)
|
19 |
# whisper_model = WhisperForConditionalGeneration.from_pretrained(whisper_model_name)
|
|
|
13 |
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 |
# whisper_model_name = "openai/whisper-small"
|
18 |
# whisper_processor = WhisperProcessor.from_pretrained(whisper_model_name)
|
19 |
# whisper_model = WhisperForConditionalGeneration.from_pretrained(whisper_model_name)
|