pragnakalp commited on
Commit
ff2b913
1 Parent(s): 361a068

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -133,17 +133,18 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray;} #btn {backg
133
  + "</h1>")
134
  with gr.Row():
135
  with gr.Column():
136
- input_audio_text = gr.Dropdown(lable="Input Audio",choices=["Please select any of the following options","Angry", "Happy", "Sad", "Disgust","Fear", "Surprise", "Neutral"],interactive=True)
137
  audio_ui=gr.Audio()
138
  input_audio_text.change(return_audio_clip,input_audio_text,audio_ui)
139
- output_text = gr.Textbox(lable="Prdicted emotion")
140
- sub_btn = gr.Button("Submit",elem_id="btn")
141
- gr.Button.style(sub_btn,bg_color='orange',text_color='white')
 
142
  with gr.Column():
143
- audio=gr.Audio(labele="Recored audio",source="microphone", type="file")
144
- recorded_text = gr.Textbox(lable="Prdicted emotion")
145
  with gr.Column():
146
- sub_btn2 = gr.Button("Submit")
147
  gr.Markdown("""<p style='text-align: center;'>Feel free to give us your <a href="https://www.pragnakalp.com/contact/" target="_blank">feedback</a> and contact us
148
  at <a href="mailto:letstalk@pragnakalp.com" target="_blank">letstalk@pragnakalp.com</a> if you want to have your own Speech emotion detection system.
149
  We are just one click away. And don't forget to check out more interesting
 
133
  + "</h1>")
134
  with gr.Row():
135
  with gr.Column():
136
+ input_audio_text = gr.Dropdown(label="Input Audio",choices=["Please select any of the following options","Angry", "Happy", "Sad", "Disgust","Fear", "Surprise", "Neutral"],interactive=True)
137
  audio_ui=gr.Audio()
138
  input_audio_text.change(return_audio_clip,input_audio_text,audio_ui)
139
+
140
+ output_text = gr.Textbox(label="Detected Emotion!")
141
+ sub_btn = gr.Button("Detect Emotion",elem_id="btn")
142
+
143
  with gr.Column():
144
+ audio=gr.Audio(label="Recored audio",source="microphone", type="file")
145
+ recorded_text = gr.Textbox(label="Detected Emotion!")
146
  with gr.Column():
147
+ sub_btn2 = gr.Button("Detect Emotion",elem_id="btn")
148
  gr.Markdown("""<p style='text-align: center;'>Feel free to give us your <a href="https://www.pragnakalp.com/contact/" target="_blank">feedback</a> and contact us
149
  at <a href="mailto:letstalk@pragnakalp.com" target="_blank">letstalk@pragnakalp.com</a> if you want to have your own Speech emotion detection system.
150
  We are just one click away. And don't forget to check out more interesting