Spaces:
Sleeping
Sleeping
tonyliu404
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -52,14 +52,21 @@ mic_transcribe = gr.Interface(
|
|
52 |
inputs=gr.Audio(sources="microphone",
|
53 |
type="filepath"),
|
54 |
outputs=gr.Audio(label="Translated Audio"),
|
55 |
-
|
56 |
|
57 |
file_transcribe = gr.Interface(
|
58 |
fn=transcribe_long_form,
|
59 |
inputs=gr.Audio(sources="upload",
|
60 |
type="filepath"),
|
61 |
outputs=gr.Audio(label="Translated Audio"),
|
62 |
-
|
63 |
)
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
demo.launch()
|
|
|
52 |
inputs=gr.Audio(sources="microphone",
|
53 |
type="filepath"),
|
54 |
outputs=gr.Audio(label="Translated Audio"),
|
55 |
+
flagging_mode="auto")
|
56 |
|
57 |
file_transcribe = gr.Interface(
|
58 |
fn=transcribe_long_form,
|
59 |
inputs=gr.Audio(sources="upload",
|
60 |
type="filepath"),
|
61 |
outputs=gr.Audio(label="Translated Audio"),
|
62 |
+
flagging_mode="auto",
|
63 |
)
|
64 |
|
65 |
+
with demo:
|
66 |
+
gr.TabbedInterface(
|
67 |
+
[mic_transcribe,
|
68 |
+
file_transcribe],
|
69 |
+
["Transcribe Microphone",
|
70 |
+
"Transcribe Audio File"],
|
71 |
+
)
|
72 |
demo.launch()
|