Spaces:
Runtime error
Runtime error
Commit
·
030d597
1
Parent(s):
1aeda5f
changed gr.Audio format
Browse files
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.
|
6 |
outputs=["text","text"])
|
7 |
demo2 = gr.Interface(detect_language,
|
8 |
-
gr.
|
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 |
+
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"])
|