Update app.py
Browse files
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
|
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:
|