immelstorun commited on
Commit
23b1e2a
·
1 Parent(s): 9bc71fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -44,6 +44,7 @@ outputs = [gr.outputs.Textbox(label="Predicted Emotion"), gr.outputs.Audio(label
44
 
45
  title = "ML Speech Emotion Detection3"
46
  description = "Speechbrain powered wav2vec 2.0 pretrained model on IEMOCAP dataset using Gradio."
47
-
48
- interface = gr.Interface(fn=predict_emotion, inputs=inputs, outputs=outputs, title=title, description=description)
 
49
  interface.launch()
 
44
 
45
  title = "ML Speech Emotion Detection3"
46
  description = "Speechbrain powered wav2vec 2.0 pretrained model on IEMOCAP dataset using Gradio."
47
+ sub_btn = gr.Button("Detect Emotion",elem_id="btn")
48
+ sub_btn.click(predict_emotion, inputs=inputs, outputs=outputs)
49
+ # interface = gr.Interface(fn=predict_emotion, inputs=inputs, outputs=outputs, title=title, description=description)
50
  interface.launch()