Update app.py
Browse files
app.py
CHANGED
|
@@ -11,10 +11,10 @@ def classify_audio(audio_file):
|
|
| 11 |
|
| 12 |
iface = gr.Interface(
|
| 13 |
fn=classify_audio,
|
| 14 |
-
inputs=gr.Audio(
|
| 15 |
outputs=gr.JSON(label="Classification result"),
|
| 16 |
title="Emotion recognition from speech (RAVDESS)",
|
| 17 |
description="Classifies emotion from audio using distilhubert-finetuned-ravdess"
|
| 18 |
)
|
| 19 |
|
| 20 |
-
iface.launch()
|
|
|
|
| 11 |
|
| 12 |
iface = gr.Interface(
|
| 13 |
fn=classify_audio,
|
| 14 |
+
inputs=gr.Audio(type="filepath"), # Removed 'source' parameter
|
| 15 |
outputs=gr.JSON(label="Classification result"),
|
| 16 |
title="Emotion recognition from speech (RAVDESS)",
|
| 17 |
description="Classifies emotion from audio using distilhubert-finetuned-ravdess"
|
| 18 |
)
|
| 19 |
|
| 20 |
+
iface.launch()
|