radames commited on
Commit
f2ece71
1 Parent(s): fa573e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -27,7 +27,7 @@ with gr.Blocks() as blocks:
27
  label="How would you like to upload your video?")
28
  video_in = gr.Video(source="webcam", include_audio=False)
29
  video_or_file_opt.change(fn=lambda s: gr.update(source=s, value=None), inputs=video_or_file_opt,
30
- outputs=video_in, queue=False)
31
  with gr.Column():
32
  video_out = gr.Video()
33
  run_btn = gr.Button("Run")
@@ -45,7 +45,7 @@ with gr.Blocks() as blocks:
45
  source="upload", visible=False, type="filepath")
46
 
47
  image_or_file_opt.change(fn=toggle, inputs=[image_or_file_opt],
48
- outputs=[image_in_video, image_in_img], queue=False)
49
  with gr.Column():
50
  image_out = gr.Image()
51
  run_btn = gr.Button("Run")
@@ -54,4 +54,5 @@ with gr.Blocks() as blocks:
54
  gr.Examples(fn=predict, examples=[], inputs=[
55
  image_in_img, image_in_video], outputs=[image_out])
56
 
 
57
  blocks.launch()
 
27
  label="How would you like to upload your video?")
28
  video_in = gr.Video(source="webcam", include_audio=False)
29
  video_or_file_opt.change(fn=lambda s: gr.update(source=s, value=None), inputs=video_or_file_opt,
30
+ outputs=video_in, queue=False, show_progress=False)
31
  with gr.Column():
32
  video_out = gr.Video()
33
  run_btn = gr.Button("Run")
 
45
  source="upload", visible=False, type="filepath")
46
 
47
  image_or_file_opt.change(fn=toggle, inputs=[image_or_file_opt],
48
+ outputs=[image_in_video, image_in_img], queue=False, show_progress=False)
49
  with gr.Column():
50
  image_out = gr.Image()
51
  run_btn = gr.Button("Run")
 
54
  gr.Examples(fn=predict, examples=[], inputs=[
55
  image_in_img, image_in_video], outputs=[image_out])
56
 
57
+ blocks.queue()
58
  blocks.launch()