Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,13 +18,13 @@ def classify_audio(filepath):
|
|
18 |
|
19 |
demo = gr.Blocks()
|
20 |
|
21 |
-
|
22 |
fn=classify_audio,
|
23 |
inputs=gr.Audio(sources="microphone", type="filepath"),
|
24 |
outputs=gr.outputs.Label()
|
25 |
)
|
26 |
|
27 |
-
|
28 |
fn=classify_audio,
|
29 |
inputs=gr.Audio(sources="upload", type="filepath"),
|
30 |
outputs=gr.outputs.Label()
|
@@ -32,6 +32,6 @@ mic_transcribe = gr.Interface(
|
|
32 |
|
33 |
with demo:
|
34 |
gr.TabbedInterface(
|
35 |
-
[
|
36 |
["Transcribe Microphone", "Transcribe Audio File"],
|
37 |
)
|
|
|
18 |
|
19 |
demo = gr.Blocks()
|
20 |
|
21 |
+
mic_classify = gr.Interface(
|
22 |
fn=classify_audio,
|
23 |
inputs=gr.Audio(sources="microphone", type="filepath"),
|
24 |
outputs=gr.outputs.Label()
|
25 |
)
|
26 |
|
27 |
+
file_classify = gr.Interface(
|
28 |
fn=classify_audio,
|
29 |
inputs=gr.Audio(sources="upload", type="filepath"),
|
30 |
outputs=gr.outputs.Label()
|
|
|
32 |
|
33 |
with demo:
|
34 |
gr.TabbedInterface(
|
35 |
+
[mic_classify, file_classify],
|
36 |
["Transcribe Microphone", "Transcribe Audio File"],
|
37 |
)
|