Add-Vishnu commited on
Commit
030d597
·
1 Parent(s): 1aeda5f

changed gr.Audio format

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -2,13 +2,13 @@ import gradio as gr
2
  from asr import transcribe,detect_language,transcribe_lang
3
 
4
  demo = gr.Interface(transcribe,
5
- gr.inputs.Audio(source="microphone", label="Use mic"),
6
  outputs=["text","text"])
7
  demo2 = gr.Interface(detect_language,
8
- gr.inputs.Audio(source="microphone", label="Use mic"),
9
  outputs=["text","text"])
10
  demo3 = gr.Interface(transcribe_lang,
11
- inputs=[gr.inputs.Audio(source="microphone", label="Use mic"),"text"],
12
  outputs=["text","text"])
13
 
14
  tabbed_interface = gr.TabbedInterface([demo,demo2,demo3],["Transcribe by auto detecting language","Detect language","Transcribe by providing language"])
 
2
  from asr import transcribe,detect_language,transcribe_lang
3
 
4
  demo = gr.Interface(transcribe,
5
+ gr.Audio(sources=["microphone"]),
6
  outputs=["text","text"])
7
  demo2 = gr.Interface(detect_language,
8
+ gr.Audio(sources=["microphone"]),
9
  outputs=["text","text"])
10
  demo3 = gr.Interface(transcribe_lang,
11
+ gr.Audio(sources=["microphone"]),
12
  outputs=["text","text"])
13
 
14
  tabbed_interface = gr.TabbedInterface([demo,demo2,demo3],["Transcribe by auto detecting language","Detect language","Transcribe by providing language"])