akash-43 commited on
Commit
d5b67d3
·
verified ·
1 Parent(s): 5c7ca6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,7 +2,8 @@ import gradio as gr
2
  from transformers import pipeline
3
 
4
  # Load the Automatic Speech Recognition (ASR) model for Finnish
5
- asr_model = pipeline("automatic-speech-recognition", model="openai/whisper-small")
 
6
 
7
  # Load the translation model for Finnish to English
8
  translator = pipeline("translation", model="Helsinki-NLP/opus-mt-fi-en")
 
2
  from transformers import pipeline
3
 
4
  # Load the Automatic Speech Recognition (ASR) model for Finnish
5
+ # asr_model = pipeline("automatic-speech-recognition", model="openai/whisper-small")
6
+ asr_model = pipeline("automatic-speech-recognition", model="Finnish-NLP/wav2vec2-base-fi-voxpopuli-v2-finetuned")
7
 
8
  # Load the translation model for Finnish to English
9
  translator = pipeline("translation", model="Helsinki-NLP/opus-mt-fi-en")