Liusuthu commited on
Commit
5cbdda6
Β·
verified Β·
1 Parent(s): 55675a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
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(