Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ 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",task="transcribe")
|
6 |
|
7 |
# Load the translation model for Finnish to English
|
8 |
translator = pipeline("translation", model="Helsinki-NLP/opus-mt-fi-en")
|