Skip to content

Commit

Permalink
add extrastab send to inpaint
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Tubasa authored and AUTOMATIC1111 committed Sep 23, 2022
1 parent 8708386 commit 03faf20
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,7 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
html_info_x = gr.HTML()
html_info = gr.HTML()
extras_send_to_img2img = gr.Button('Send to img2img')
extras_send_to_inpaint = gr.Button('Send to inpaint')

submit.click(
fn=run_extras,
Expand Down Expand Up @@ -782,6 +783,13 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
inputs=[result_images],
outputs=[init_img],
)

extras_send_to_inpaint.click(
fn=lambda x: image_from_url_text(x),
_js="extract_image_from_gallery_img2img",
inputs=[result_images],
outputs=[init_img_with_mask],
)

pnginfo_interface = gr.Interface(
wrap_gradio_call(run_pnginfo),
Expand Down

0 comments on commit 03faf20

Please sign in to comment.