truongghieu commited on
Commit
9ef6323
1 Parent(s): 9035dc4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -16,7 +16,6 @@ def recognize_speech(audio_data):
16
  except sr.RequestError as e:
17
  return f"Could not request results from Google Speech Recognition service; {e}"
18
 
19
- input_audio = gr.Audio(source="microphone", type="numpy", label="Recording", optional=False)
20
 
21
- iface = gr.Interface(fn=recognize_speech, inputs=input_audio, outputs="text")
22
  iface.launch()
 
16
  except sr.RequestError as e:
17
  return f"Could not request results from Google Speech Recognition service; {e}"
18
 
 
19
 
20
+ iface = gr.Interface(fn=recognize_speech, inputs="microphone", outputs="text")
21
  iface.launch()