seikin_alexey commited on
Commit
1135c96
1 Parent(s): 02b9be6
Files changed (1) hide show
  1. app3.py +2 -3
app3.py CHANGED
@@ -42,9 +42,8 @@ audio_files_list = get_audio_files_list()
42
  inputs = gr.Dropdown(label="Select Audio", choices=audio_files_list)
43
  outputs = [gr.outputs.Textbox(label="Predicted Emotion"), gr.outputs.Audio(label="Play Audio")]
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()
 
42
  inputs = gr.Dropdown(label="Select Audio", choices=audio_files_list)
43
  outputs = [gr.outputs.Textbox(label="Predicted Emotion"), gr.outputs.Audio(label="Play Audio")]
44
 
45
+ title = "ML Speech Emotion Detection"
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()