linoyts HF staff commited on
Commit
33d2ae8
·
verified ·
1 Parent(s): 607e519

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -511,6 +511,10 @@ with gr.Blocks(delete_cache=(600, 600), js=js_func) as demo:
511
  # outputs=[image_prompt, do_preprocess],
512
  # )
513
  sketch_btn.click(
 
 
 
 
514
  preprocess_image,
515
  inputs=[image_prompt, prompt, negative_prompt, style, num_steps, guidance_scale, controlnet_conditioning_scale],
516
  outputs=[image_prompt],
 
511
  # outputs=[image_prompt, do_preprocess],
512
  # )
513
  sketch_btn.click(
514
+ get_seed,
515
+ inputs=[randomize_seed, seed],
516
+ outputs=[seed],
517
+ ).then(
518
  preprocess_image,
519
  inputs=[image_prompt, prompt, negative_prompt, style, num_steps, guidance_scale, controlnet_conditioning_scale],
520
  outputs=[image_prompt],