Spaces:
Runtime error
Runtime error
Commit ·
789a241
1
Parent(s): 7906795
Update app.py
Browse files
app.py
CHANGED
|
@@ -90,7 +90,7 @@ with gr.Blocks() as demo:
|
|
| 90 |
with gr.Column():
|
| 91 |
|
| 92 |
with gr.Row():
|
| 93 |
-
|
| 94 |
|
| 95 |
with gr.Row():
|
| 96 |
analyze_btn = gr.Button('Analyze File')
|
|
@@ -100,7 +100,7 @@ with gr.Blocks() as demo:
|
|
| 100 |
moods=gr.outputs.Label(label="Moods")
|
| 101 |
|
| 102 |
|
| 103 |
-
analyze_btn.click(process, inputs=[
|
| 104 |
-
url.submit(process, inputs=[
|
| 105 |
|
| 106 |
demo.launch(debug=False)
|
|
|
|
| 90 |
with gr.Column():
|
| 91 |
|
| 92 |
with gr.Row():
|
| 93 |
+
audio_input = gr.Audio(type="filepath", label='Audio Input')
|
| 94 |
|
| 95 |
with gr.Row():
|
| 96 |
analyze_btn = gr.Button('Analyze File')
|
|
|
|
| 100 |
moods=gr.outputs.Label(label="Moods")
|
| 101 |
|
| 102 |
|
| 103 |
+
analyze_btn.click(process, inputs=[audio_input], outputs=[moods])
|
| 104 |
+
url.submit(process, inputs=[audio_input], outputs=[moods])
|
| 105 |
|
| 106 |
demo.launch(debug=False)
|