preetam8 commited on
Commit
e970d56
·
1 Parent(s): be03dff

try new finetuned whisper model

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="openai/whisper-base", 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)
 
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)