Spaces:
Runtime error
Runtime error
dreamdrop-art
commited on
Commit
·
40d8f19
1
Parent(s):
f71d017
Update app.py
Browse files
app.py
CHANGED
@@ -246,7 +246,7 @@ with gr.Blocks(css=css) as demo:
|
|
246 |
image_output = gr.Gallery(show_label=False, columns=4)
|
247 |
send_to_img2img = gr.Button(variant="secondary", value="Send to img2img")
|
248 |
|
249 |
-
|
250 |
|
251 |
text_button.click(txt2img, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height,
|
252 |
seed], outputs=image_output, concurrency_limit=64)
|
@@ -290,7 +290,7 @@ with gr.Blocks(css=css) as demo:
|
|
290 |
i2i_text_button.click(img2img, inputs=[i2i_image_input, i2i_denoising, i2i_prompt, i2i_negative_prompt,
|
291 |
model, i2i_steps, i2i_sampler, i2i_cfg_scale, i2i_width, i2i_height,
|
292 |
i2i_seed], outputs=i2i_image_output, concurrency_limit=64)
|
293 |
-
|
294 |
with gr.Tab("PNG Info"):
|
295 |
def plaintext_to_html(text, classname=None):
|
296 |
content = "<br>\n".join(html.escape(x) for x in text.split('\n'))
|
|
|
246 |
image_output = gr.Gallery(show_label=False, columns=4)
|
247 |
send_to_img2img = gr.Button(variant="secondary", value="Send to img2img")
|
248 |
|
249 |
+
|
250 |
|
251 |
text_button.click(txt2img, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height,
|
252 |
seed], outputs=image_output, concurrency_limit=64)
|
|
|
290 |
i2i_text_button.click(img2img, inputs=[i2i_image_input, i2i_denoising, i2i_prompt, i2i_negative_prompt,
|
291 |
model, i2i_steps, i2i_sampler, i2i_cfg_scale, i2i_width, i2i_height,
|
292 |
i2i_seed], outputs=i2i_image_output, concurrency_limit=64)
|
293 |
+
send_to_img2img.click(send_to_img2img, inputs=image_output, outputs=i2i_image_input)
|
294 |
with gr.Tab("PNG Info"):
|
295 |
def plaintext_to_html(text, classname=None):
|
296 |
content = "<br>\n".join(html.escape(x) for x in text.split('\n'))
|