Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -92,6 +92,10 @@ with gr.Blocks(css="app.css") as video:
|
|
92 |
label="Statistics of emotions", elem_classes="stat"
|
93 |
)
|
94 |
output_audio=gr.Audio(interactive=False)
|
|
|
|
|
|
|
|
|
95 |
gr.Examples(
|
96 |
[
|
97 |
"videos/video1.mp4",
|
@@ -124,6 +128,11 @@ with gr.Blocks(css="app.css") as video:
|
|
124 |
output_audio,
|
125 |
],
|
126 |
)
|
|
|
|
|
|
|
|
|
|
|
127 |
|
128 |
####################################
|
129 |
speech = gr.Interface(
|
|
|
92 |
label="Statistics of emotions", elem_classes="stat"
|
93 |
)
|
94 |
output_audio=gr.Audio(interactive=False)
|
95 |
+
audio_test_button=gr.Button("εζθ―ι³")
|
96 |
+
out1=gr.Textbox(label="θ―ι³εζη»ζ")
|
97 |
+
out2=gr.Textbox(label="ι³ι’ζ
ζθ―ε«1")
|
98 |
+
out3=gr.Textbox(label="ι³ι’ζ
ζθ―ε«2")
|
99 |
gr.Examples(
|
100 |
[
|
101 |
"videos/video1.mp4",
|
|
|
128 |
output_audio,
|
129 |
],
|
130 |
)
|
131 |
+
audio_test_button.click(
|
132 |
+
fn=classify_continuous,
|
133 |
+
inputs=output_audio,
|
134 |
+
outputs=[out1,out2,out3]
|
135 |
+
)
|
136 |
|
137 |
####################################
|
138 |
speech = gr.Interface(
|