Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,7 @@ def modelo1(audio):
|
|
| 8 |
# Convertir la tasa de muestreo del audio
|
| 9 |
whisper = pipeline('automatic-speech-recognition', model = 'openai/whisper-medium', device = -1)
|
| 10 |
text = whisper(audio)
|
|
|
|
| 11 |
return text
|
| 12 |
|
| 13 |
def modelo2(text):
|
|
|
|
| 8 |
# Convertir la tasa de muestreo del audio
|
| 9 |
whisper = pipeline('automatic-speech-recognition', model = 'openai/whisper-medium', device = -1)
|
| 10 |
text = whisper(audio)
|
| 11 |
+
text = text["text"]
|
| 12 |
return text
|
| 13 |
|
| 14 |
def modelo2(text):
|