Commit
·
ff2b913
1
Parent(s):
361a068
Update app.py
Browse files
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(
|
137 |
audio_ui=gr.Audio()
|
138 |
input_audio_text.change(return_audio_clip,input_audio_text,audio_ui)
|
139 |
-
|
140 |
-
|
141 |
-
gr.Button
|
|
|
142 |
with gr.Column():
|
143 |
-
audio=gr.Audio(
|
144 |
-
recorded_text = gr.Textbox(
|
145 |
with gr.Column():
|
146 |
-
sub_btn2 = gr.Button("
|
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:[email protected]" target="_blank">[email protected]</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:[email protected]" target="_blank">[email protected]</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
|