Update app.py
Browse files
app.py
CHANGED
|
@@ -110,8 +110,8 @@ with gr.Blocks() as interface:
|
|
| 110 |
emotion_prediction, _ = get_predictions(wav_filepath) # Extract only the emotion prediction
|
| 111 |
return emotion_prediction
|
| 112 |
|
| 113 |
-
|
| 114 |
-
|
| 115 |
|
| 116 |
interface.launch()
|
| 117 |
|
|
|
|
| 110 |
emotion_prediction, _ = get_predictions(wav_filepath) # Extract only the emotion prediction
|
| 111 |
return emotion_prediction
|
| 112 |
|
| 113 |
+
# Set the function to be called when the button is clicked
|
| 114 |
+
submit_button.click(submit_callback, inputs=input_audio, outputs=output_label[0])
|
| 115 |
|
| 116 |
interface.launch()
|
| 117 |
|