ecarbo commited on
Commit
3c38731
·
1 Parent(s): 76e4fff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -9,4 +9,10 @@ def transcribe(audio, state=""):
9
  state += text + " "
10
  return state, state
11
 
12
- gr.Interface(fn=transcribe, inputs=[gr.inputs.Audio(source="microphone", type="filepath", label="Record/ Drop audio"), "state"], outputs=["textbox", "state"], title="Automatic Speech Recognition", description="Enable the recognition spoken language into text by computers.", theme="huggingface", live=True).launch()
 
 
 
 
 
 
 
9
  state += text + " "
10
  return state, state
11
 
12
+ gr.Interface(fn=transcribe,
13
+ inputs=[gr.inputs.Audio(source="upload", type="filepath", label="Record/ Drop audio"), "state"],
14
+ outputs=["textbox", "state"],
15
+ title="Automatic Speech Recognition",
16
+ description="Enable the recognition spoken language into text by computers.",
17
+ theme="huggingface",
18
+ live=True).launch()