Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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],
|