flozi00 commited on
Commit
2e8cc61
·
1 Parent(s): e34ab15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -8
app.py CHANGED
@@ -11,11 +11,22 @@ def transcribe(audio):
11
 
12
  return transcribed_corrected
13
 
14
- gr.Interface(
15
- fn=transcribe,
16
- inputs=[
17
- gr.inputs.Audio(source="microphone", type="filepath")
18
- ],
19
- outputs=[
20
- "textbox"
21
- ]).launch(server_name = "0.0.0.0")
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
  return transcribed_corrected
13
 
14
+ def get_asr_interface():
15
+ return gr.Interface(
16
+ fn=transcribe,
17
+ inputs=[
18
+ gr.inputs.Audio(source="microphone", type="filepath")
19
+ ],
20
+ outputs=[
21
+ "textbox"
22
+ ])
23
+
24
+ interfaces = [
25
+ get_asr_interface(),
26
+ ]
27
+
28
+ names = [
29
+ "ASR",
30
+ ]
31
+
32
+ gradio.TabbedInterface(interfaces, names).launch(server_name = "0.0.0.0")