Spaces:
Runtime error
Runtime error
dreamdrop-art
commited on
Commit
·
4ef26ea
1
Parent(s):
40d8f19
Update app.py
Browse files
app.py
CHANGED
@@ -119,7 +119,7 @@ def get_data(text):
|
|
119 |
results['h'] = None
|
120 |
return results
|
121 |
|
122 |
-
def
|
123 |
result = Image.open(image)
|
124 |
return [result]
|
125 |
|
@@ -244,7 +244,7 @@ with gr.Blocks(css=css) as demo:
|
|
244 |
|
245 |
with gr.Column(scale=2):
|
246 |
image_output = gr.Gallery(show_label=False, columns=4)
|
247 |
-
send_to_img2img = gr.Button(
|
248 |
|
249 |
|
250 |
|
@@ -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 |
-
send_to_img2img.click(
|
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'))
|
|
|
119 |
results['h'] = None
|
120 |
return results
|
121 |
|
122 |
+
def send_to_img2img_def(image):
|
123 |
result = Image.open(image)
|
124 |
return [result]
|
125 |
|
|
|
244 |
|
245 |
with gr.Column(scale=2):
|
246 |
image_output = gr.Gallery(show_label=False, columns=4)
|
247 |
+
send_to_img2img = gr.Button(value="Send to img2img")
|
248 |
|
249 |
|
250 |
|
|
|
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_def, 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'))
|