Spaces:
Runtime error
Runtime error
Commit
·
b8afbd5
1
Parent(s):
a20ecf1
Updated input format
Browse filesUsing inputs as "inputs = "microphone",
app.py
CHANGED
@@ -2,13 +2,16 @@ import gradio as gr
|
|
2 |
from asr import transcribe,detect_language,transcribe_lang
|
3 |
|
4 |
demo = gr.Interface(transcribe,
|
5 |
-
|
|
|
6 |
outputs=["text","text"])
|
7 |
demo2 = gr.Interface(detect_language,
|
8 |
-
|
|
|
9 |
outputs=["text","text"])
|
10 |
demo3 = gr.Interface(transcribe_lang,
|
11 |
-
|
|
|
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 |
+
inputs = "microphone",
|
6 |
+
# gr.Audio(sources=["microphone"]),
|
7 |
outputs=["text","text"])
|
8 |
demo2 = gr.Interface(detect_language,
|
9 |
+
inputs = "microphone",
|
10 |
+
# gr.Audio(sources=["microphone"]),
|
11 |
outputs=["text","text"])
|
12 |
demo3 = gr.Interface(transcribe_lang,
|
13 |
+
inputs = "microphone",
|
14 |
+
# gr.Audio(sources=["microphone"]),
|
15 |
outputs=["text","text"])
|
16 |
|
17 |
tabbed_interface = gr.TabbedInterface([demo,demo2,demo3],["Transcribe by auto detecting language","Detect language","Transcribe by providing language"])
|