jmparejaz commited on
Commit
1c46207
1 Parent(s): 0d696c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -19,5 +19,13 @@ def inference_audio(audio):
19
 
20
  return result.text
21
 
 
 
 
 
 
 
22
 
23
- app=gr.Interface(title="Speech to texxt",fn=inference_audio,inputs=gr.Audio(source="microphone"), outputs=["text"]).launch(debug = True)
 
 
 
19
 
20
  return result.text
21
 
22
+ audio = gr.Audio(
23
+ label="Input Audio",
24
+ show_label=False,
25
+ source="microphone",
26
+ type="filepath"
27
+ )
28
 
29
+
30
+
31
+ app=gr.Interface(title="Speech to text",fn=inference_audio,inputs=audio, outputs=["text"]).launch(debug = True)