add extrastab send to inpaint
This commit is contained in:
parent
8708386609
commit
03faf20251
|
@ -753,6 +753,7 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
|
||||||
html_info_x = gr.HTML()
|
html_info_x = gr.HTML()
|
||||||
html_info = gr.HTML()
|
html_info = gr.HTML()
|
||||||
extras_send_to_img2img = gr.Button('Send to img2img')
|
extras_send_to_img2img = gr.Button('Send to img2img')
|
||||||
|
extras_send_to_inpaint = gr.Button('Send to inpaint')
|
||||||
|
|
||||||
submit.click(
|
submit.click(
|
||||||
fn=run_extras,
|
fn=run_extras,
|
||||||
|
@ -783,6 +784,13 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
|
||||||
outputs=[init_img],
|
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(
|
pnginfo_interface = gr.Interface(
|
||||||
wrap_gradio_call(run_pnginfo),
|
wrap_gradio_call(run_pnginfo),
|
||||||
inputs=[
|
inputs=[
|
||||||
|
|
Loading…
Reference in New Issue