amirgame197 commited on
Commit
1b04606
·
verified ·
1 Parent(s): 0b39bab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ async def detect(audio):
11
  results = ''
12
  while True:
13
  print(next(recognize_generator))
14
- results += next(recognize_generator)
15
  return results
16
 
17
  iface = gr.Interface(fn=detect, inputs=[gr.Audio(type="filepath", label="Audio File")], outputs="text")
 
11
  results = ''
12
  while True:
13
  print(next(recognize_generator))
14
+ results += str(next(recognize_generator))
15
  return results
16
 
17
  iface = gr.Interface(fn=detect, inputs=[gr.Audio(type="filepath", label="Audio File")], outputs="text")