Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
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():
|