Boltz79 commited on
Commit
d250b36
·
verified ·
1 Parent(s): f974b5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -152,7 +152,8 @@ with gr.Blocks(css=".gradio-container {background-color: #f7f7f7; font-family: A
152
  with gr.Tabs():
153
  with gr.TabItem("Emotion Recognition"):
154
  with gr.Row():
155
- audio_input = gr.Audio(type="filepath", label="Upload Audio", source="upload")
 
156
  use_ensemble = gr.Checkbox(label="Use Ensemble Prediction (for long audio)", value=False)
157
  apply_noise_reduction = gr.Checkbox(label="Apply Noise Reduction", value=False)
158
  with gr.Row():
 
152
  with gr.Tabs():
153
  with gr.TabItem("Emotion Recognition"):
154
  with gr.Row():
155
+ # Removed the 'source' argument which caused the error.
156
+ audio_input = gr.Audio(type="filepath", label="Upload Audio")
157
  use_ensemble = gr.Checkbox(label="Use Ensemble Prediction (for long audio)", value=False)
158
  apply_noise_reduction = gr.Checkbox(label="Apply Noise Reduction", value=False)
159
  with gr.Row():