jfforero commited on
Commit
15a5130
·
verified ·
1 Parent(s): 7ca74a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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"Detected: {emotion}"
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 Emotion")
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,