fffiloni commited on
Commit
6b56426
1 Parent(s): 2eb5797

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -373,7 +373,7 @@ if __name__ == "__main__":
373
  with gr.Row():
374
  with gr.Column():
375
  video_in = gr.Video(source='upload', type="filepath")
376
- trim_in = gr.Slider(label="Cut video at (s)", minimun=1, maximum=5, step=1, value=1)
377
  #task_type = gr.Dropdown(["scribble_point", "scribble_box", "text"], value="text", label="Prompt type")
378
  #task_type = "text"
379
  text_prompt = gr.Textbox(label="Text prompt", placeholder="the girl in the middle", info="Describe the subject visible in your video that you want to matte")
@@ -410,6 +410,6 @@ if __name__ == "__main__":
410
  run_button.click(fn=infer, inputs=[
411
  video_in, trim_in, text_prompt, background_prompt], outputs=[vid_bg_out, vid_green_out, vid_matte_out])
412
 
413
- block.queue(max_size=12).launch(debug=args.debug, share=args.share, show_error=True)
414
  #block.queue(concurrency_count=100)
415
  #block.launch(server_name='0.0.0.0', server_port=args.port, debug=args.debug, share=args.share)
 
373
  with gr.Row():
374
  with gr.Column():
375
  video_in = gr.Video(source='upload', type="filepath")
376
+ trim_in = gr.Slider(label="Cut video at (s)", minimun=1, maximum=10, step=1, value=1)
377
  #task_type = gr.Dropdown(["scribble_point", "scribble_box", "text"], value="text", label="Prompt type")
378
  #task_type = "text"
379
  text_prompt = gr.Textbox(label="Text prompt", placeholder="the girl in the middle", info="Describe the subject visible in your video that you want to matte")
 
410
  run_button.click(fn=infer, inputs=[
411
  video_in, trim_in, text_prompt, background_prompt], outputs=[vid_bg_out, vid_green_out, vid_matte_out])
412
 
413
+ block.queue(max_size=24).launch(debug=args.debug, share=args.share, show_error=True)
414
  #block.queue(concurrency_count=100)
415
  #block.launch(server_name='0.0.0.0', server_port=args.port, debug=args.debug, share=args.share)