Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,11 +11,22 @@ def transcribe(audio):
|
|
11 |
|
12 |
return transcribed_corrected
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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")
|