Bartusito commited on
Commit
88eec6d
1 Parent(s): 7ffc23f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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):