hysts HF staff fffiloni commited on
Commit
4a92faa
1 Parent(s): 3a3e71c

skip the queue for canvas creation (#3)

Browse files

- skip the queue for canvas creation (58278cf8a77622c061be30b88bd06f1d72ad8795)


Co-authored-by: Sylvain Filoni <fffiloni@users.noreply.huggingface.co>

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):