Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from transformers import pipeline
|
|
| 5 |
cls = pipeline('automatic-speech-recognition',model = "openai/whisper-tiny")
|
| 6 |
|
| 7 |
def transcribe(audio):
|
| 8 |
-
transcript =
|
| 9 |
return transcript['text']
|
| 10 |
|
| 11 |
demo = gr.Interface(
|
|
|
|
| 5 |
cls = pipeline('automatic-speech-recognition',model = "openai/whisper-tiny")
|
| 6 |
|
| 7 |
def transcribe(audio):
|
| 8 |
+
transcript = cls(audio)
|
| 9 |
return transcript['text']
|
| 10 |
|
| 11 |
demo = gr.Interface(
|