Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ from transformers import pipeline
|
|
| 8 |
def modelo1(audio):
|
| 9 |
|
| 10 |
whisper = pipeline('automatic-speech-recognition', model='openai/whisper-medium', device=-1) # Cambia 'device' a -1 para usar la CPU
|
| 11 |
-
text = whisper(
|
| 12 |
return text["text"]
|
| 13 |
|
| 14 |
def modelo2(text):
|
|
|
|
| 8 |
def modelo1(audio):
|
| 9 |
|
| 10 |
whisper = pipeline('automatic-speech-recognition', model='openai/whisper-medium', device=-1) # Cambia 'device' a -1 para usar la CPU
|
| 11 |
+
text = whisper(audio)
|
| 12 |
return text["text"]
|
| 13 |
|
| 14 |
def modelo2(text):
|