Liusuthu commited on
Commit
e67b5d2
·
verified ·
1 Parent(s): 0b79815

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -207,7 +207,7 @@ with gr.Blocks() as video_all:
207
  with gr.Row():
208
  with gr.Column(scale=2):
209
  input_video = gr.Video(
210
- sources=["upload","webcam"], elem_classes="video1", format='mp4'
211
  )
212
  with gr.Row():
213
  clear_1 = gr.Button(
@@ -218,11 +218,13 @@ with gr.Blocks() as video_all:
218
  )
219
  with gr.Column(scale=2):
220
  with gr.Row():
221
- score1 = gr.Textbox(label="scores")
222
  output_statistics = gr.Plot(
223
  label="Statistics of emotions", elem_classes="stat",visible=False,
224
  )
225
  output_audio=gr.Audio(interactive=False,visible=False)
 
 
226
 
227
  clear_1.click(
228
  fn=clear_video,
 
207
  with gr.Row():
208
  with gr.Column(scale=2):
209
  input_video = gr.Video(
210
+ sources=["webcam"], elem_classes="video1", format='mp4'
211
  )
212
  with gr.Row():
213
  clear_1 = gr.Button(
 
218
  )
219
  with gr.Column(scale=2):
220
  with gr.Row():
221
+ score1 = gr.Textbox(label="score1")
222
  output_statistics = gr.Plot(
223
  label="Statistics of emotions", elem_classes="stat",visible=False,
224
  )
225
  output_audio=gr.Audio(interactive=False,visible=False)
226
+ score2=gr.gr.Textbox(label="score2")
227
+ score3=gr.gr.Textbox(label="score3")
228
 
229
  clear_1.click(
230
  fn=clear_video,