victorgg commited on
Commit
7b2e5f2
β€’
1 Parent(s): c432ccb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -697,12 +697,12 @@ with gr.Blocks(css=css) as interface:
697
  value="Image",
698
  )
699
 
700
- with gr.Box(visible=True) as input_image_group:
701
  image_input = gr.Image(
702
  label="Target Image", interactive=True, type="filepath"
703
  )
704
 
705
- with gr.Box(visible=False) as input_video_group:
706
  vid_widget = gr.Video if USE_COLAB else gr.Text
707
  video_input = gr.Video(
708
  label="Target Video", interactive=True
@@ -903,4 +903,4 @@ if __name__ == "__main__":
903
  if USE_COLAB:
904
  print("Running in colab mode")
905
 
906
- interface.queue(concurrency_count=2, max_size=20).launch(share=USE_COLAB)
 
697
  value="Image",
698
  )
699
 
700
+ with gr.Group(visible=True) as input_image_group:
701
  image_input = gr.Image(
702
  label="Target Image", interactive=True, type="filepath"
703
  )
704
 
705
+ with gr.Group(visible=False) as input_video_group:
706
  vid_widget = gr.Video if USE_COLAB else gr.Text
707
  video_input = gr.Video(
708
  label="Target Video", interactive=True
 
903
  if USE_COLAB:
904
  print("Running in colab mode")
905
 
906
+ interface.launch(concurrency_count=2, max_size=10).launch(share=USE_COLAB)