Liusuthu commited on
Commit
0a89687
·
verified ·
1 Parent(s): a507b40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -174,11 +174,11 @@ speech = gr.Interface(
174
  ],
175
  )
176
  ############################################################
177
- with gr.Blocks() as video_score:
178
  with gr.Row():
179
  with gr.Column(scale=2):
180
  input_video = gr.Video(
181
- sources=["upload"], elem_classes="video1", format='mp4'
182
  )
183
  with gr.Row():
184
  clear_1 = gr.Button(
@@ -201,7 +201,7 @@ with gr.Blocks() as video_score:
201
  submit_1.click(
202
  fn=video_score,
203
  inputs=[input_video],
204
- outputs=[score1,score2,result3]
205
  )
206
 
207
 
 
174
  ],
175
  )
176
  ############################################################
177
+ with gr.Blocks() as video_all:
178
  with gr.Row():
179
  with gr.Column(scale=2):
180
  input_video = gr.Video(
181
+ sources=["webcam"], elem_classes="video1", format='mp4'
182
  )
183
  with gr.Row():
184
  clear_1 = gr.Button(
 
201
  submit_1.click(
202
  fn=video_score,
203
  inputs=[input_video],
204
+ outputs=[score1,score2,result3],
205
  )
206
 
207