add extrastab send to inpaint

This commit is contained in:
Seki 2022-09-23 20:17:23 +09:00 committed by AUTOMATIC1111
parent 8708386609
commit 03faf20251
1 changed files with 8 additions and 0 deletions

View File

@ -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,
@ -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),