Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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")
|