Spaces:
Runtime error
Runtime error
Commit
·
970b919
1
Parent(s):
4c6f70e
use correct naming ('classify' instead of 'transcribe')
Browse files
app.py
CHANGED
|
@@ -24,8 +24,8 @@ def classify_audio(filepath):
|
|
| 24 |
|
| 25 |
demo = gr.Blocks()
|
| 26 |
|
| 27 |
-
|
| 28 |
-
fn=
|
| 29 |
#TODO not sure we need list here
|
| 30 |
inputs=[
|
| 31 |
#TODO not sure we need '.inputs.'
|
|
@@ -49,8 +49,8 @@ file_transcribe = gr.Interface(
|
|
| 49 |
allow_flagging="never",
|
| 50 |
)
|
| 51 |
|
| 52 |
-
|
| 53 |
-
fn=
|
| 54 |
inputs=[
|
| 55 |
gr.inputs.Audio(source="microphone", type="filepath", optional=True),
|
| 56 |
],
|
|
@@ -67,6 +67,6 @@ mic_transcribe = gr.Interface(
|
|
| 67 |
)
|
| 68 |
|
| 69 |
with demo:
|
| 70 |
-
gr.TabbedInterface([
|
| 71 |
|
| 72 |
demo.launch(enable_queue=True)
|
|
|
|
| 24 |
|
| 25 |
demo = gr.Blocks()
|
| 26 |
|
| 27 |
+
file_classify = gr.Interface(
|
| 28 |
+
fn=classify_audio,
|
| 29 |
#TODO not sure we need list here
|
| 30 |
inputs=[
|
| 31 |
#TODO not sure we need '.inputs.'
|
|
|
|
| 49 |
allow_flagging="never",
|
| 50 |
)
|
| 51 |
|
| 52 |
+
mic_classify = gr.Interface(
|
| 53 |
+
fn=classify_audio,
|
| 54 |
inputs=[
|
| 55 |
gr.inputs.Audio(source="microphone", type="filepath", optional=True),
|
| 56 |
],
|
|
|
|
| 67 |
)
|
| 68 |
|
| 69 |
with demo:
|
| 70 |
+
gr.TabbedInterface([file_classify, mic_classify], ["Classify Audio File", "classify Microphone input"])
|
| 71 |
|
| 72 |
demo.launch(enable_queue=True)
|