hysts HF staff commited on
Commit
6987722
1 Parent(s): ef87020

skip the queue for canvas creation. https://huggingface.co/spaces/hysts/ControlNet/discussions/3

Browse files
gradio_scribble2image_interactive.py CHANGED
@@ -37,7 +37,8 @@ def create_demo(process, max_images=12):
37
  )
38
  create_button.click(fn=create_canvas,
39
  inputs=[canvas_width, canvas_height],
40
- outputs=[input_image])
 
41
  prompt = gr.Textbox(label='Prompt')
42
  run_button = gr.Button(label='Run')
43
  with gr.Accordion('Advanced options', open=False):
 
37
  )
38
  create_button.click(fn=create_canvas,
39
  inputs=[canvas_width, canvas_height],
40
+ outputs=[input_image],
41
+ queue=False)
42
  prompt = gr.Textbox(label='Prompt')
43
  run_button = gr.Button(label='Run')
44
  with gr.Accordion('Advanced options', open=False):