Spaces:
Runtime error
Runtime error
Commit ·
d24216f
1
Parent(s): 830f8b5
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,14 +68,16 @@ def process(input_path):
|
|
| 68 |
audioquality = [res['audio_quality'][0]['name'], res['audio_quality'][0]['probability']]
|
| 69 |
print(audioquality)
|
| 70 |
|
| 71 |
-
return moods
|
| 72 |
|
| 73 |
|
| 74 |
demo = gr.Interface(fn=process,
|
| 75 |
inputs=gr.Audio(type="filepath"),
|
| 76 |
-
outputs=gr.outputs.
|
|
|
|
| 77 |
#examples=example_list,
|
| 78 |
#cache_examples=False
|
|
|
|
| 79 |
)
|
| 80 |
|
| 81 |
demo.launch(debug=False)
|
|
|
|
| 68 |
audioquality = [res['audio_quality'][0]['name'], res['audio_quality'][0]['probability']]
|
| 69 |
print(audioquality)
|
| 70 |
|
| 71 |
+
return res['moods']
|
| 72 |
|
| 73 |
|
| 74 |
demo = gr.Interface(fn=process,
|
| 75 |
inputs=gr.Audio(type="filepath"),
|
| 76 |
+
outputs=gr.outputs.Label(num_top_classes=3),
|
| 77 |
+
#outputs=gr.outputs.Textbox(label="Generated Text")
|
| 78 |
#examples=example_list,
|
| 79 |
#cache_examples=False
|
| 80 |
+
|
| 81 |
)
|
| 82 |
|
| 83 |
demo.launch(debug=False)
|