Spaces:
jfforero
/
Runtime error

jfforero commited on
Commit
d47a933
·
verified ·
1 Parent(s): c3055f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def predict_emotion_from_audio(wav_filepath):
47
  # Predict emotion from audio
48
  def get_predictions(audio_input):
49
  emotion_prediction = predict_emotion_from_audio(audio_input)
50
- return [gr.Label(emotion_prediction)] # Define the Label here
51
 
52
  # Create the Gradio interface
53
  with gr.Blocks() as interface:
 
47
  # Predict emotion from audio
48
  def get_predictions(audio_input):
49
  emotion_prediction = predict_emotion_from_audio(audio_input)
50
+ return emotion_prediction # Return a single prediction instead of a list
51
 
52
  # Create the Gradio interface
53
  with gr.Blocks() as interface: