use whisper medium
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="openai/whisper-base", device=device)
|
17 |
-
whisper_model_name = "openai/whisper-
|
18 |
whisper_processor = WhisperProcessor.from_pretrained(whisper_model_name)
|
19 |
whisper_model = WhisperForConditionalGeneration.from_pretrained(whisper_model_name)
|
20 |
decoder_ids = whisper_processor.get_decoder_prompt_ids(language=target_language, task="transcribe")
|
|
|
14 |
|
15 |
# load speech translation checkpoint
|
16 |
# asr_pipe = pipeline("automatic-speech-recognition", model="openai/whisper-base", device=device)
|
17 |
+
whisper_model_name = "openai/whisper-medium"
|
18 |
whisper_processor = WhisperProcessor.from_pretrained(whisper_model_name)
|
19 |
whisper_model = WhisperForConditionalGeneration.from_pretrained(whisper_model_name)
|
20 |
decoder_ids = whisper_processor.get_decoder_prompt_ids(language=target_language, task="transcribe")
|