aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSeki <73173305+S-Tubasa@users.noreply.github.com>2022-09-23 12:40:39 +0900
committerAUTOMATIC1111 <16777216c@gmail.com>2022-09-23 14:19:33 +0300
commit870838660914695d0d33ac73fa934014c4296daa (patch)
treed29c05da18654691bb0fc0b377bca09af69d6e90 /modules
parentd4205e66fa50e6bed4ace11bc2236e834b7c560f (diff)
add extrastab send to img2img
Diffstat (limited to 'modules')
-rw-r--r--modules/ui.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 0292b321..d56dc919 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -752,6 +752,7 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
result_images = gr.Gallery(label="Result", show_label=False)
html_info_x = gr.HTML()
html_info = gr.HTML()
+ extras_send_to_img2img = gr.Button('Send to img2img')
submit.click(
fn=run_extras,
@@ -774,6 +775,13 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
html_info,
]
)
+
+ extras_send_to_img2img.click(
+ fn=lambda x: image_from_url_text(x),
+ _js="extract_image_from_gallery_img2img",
+ inputs=[result_images],
+ outputs=[init_img],
+ )
pnginfo_interface = gr.Interface(
wrap_gradio_call(run_pnginfo),