Update app.py
Browse files
app.py
CHANGED
|
@@ -63,7 +63,7 @@ def get_predictions(audio_input):
|
|
| 63 |
return "Please upload or record audio"
|
| 64 |
|
| 65 |
emotion = predict_emotion_from_audio(audio_input)
|
| 66 |
-
return f"
|
| 67 |
|
| 68 |
# -----------------------------
|
| 69 |
# Interface
|
|
@@ -83,7 +83,7 @@ with gr.Blocks() as interface:
|
|
| 83 |
)
|
| 84 |
submit_button = gr.Button("Analyze Emotion")
|
| 85 |
|
| 86 |
-
output_label = gr.Label(label="Acoustic
|
| 87 |
|
| 88 |
submit_button.click(
|
| 89 |
fn=get_predictions,
|
|
|
|
| 63 |
return "Please upload or record audio"
|
| 64 |
|
| 65 |
emotion = predict_emotion_from_audio(audio_input)
|
| 66 |
+
return f"Emotion: {emotion}"
|
| 67 |
|
| 68 |
# -----------------------------
|
| 69 |
# Interface
|
|
|
|
| 83 |
)
|
| 84 |
submit_button = gr.Button("Analyze Emotion")
|
| 85 |
|
| 86 |
+
output_label = gr.Label(label="Acoustic Prediction")
|
| 87 |
|
| 88 |
submit_button.click(
|
| 89 |
fn=get_predictions,
|