cagucor commited on
Commit
252bac2
·
verified ·
1 Parent(s): 87d586c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(source="upload", type="filepath"),
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()