Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
|
5 |
-
model = pipeline(task="automatic-speech-recognition"
|
6 |
-
|
7 |
def predict_speech_to_text(audio):
|
8 |
prediction = model(audio)
|
9 |
text = prediction['text']
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
|
5 |
+
model = pipeline(task="automatic-speech-recognition")
|
|
|
6 |
def predict_speech_to_text(audio):
|
7 |
prediction = model(audio)
|
8 |
text = prediction['text']
|