dreamdrop-art commited on
Commit
6f838ab
1 Parent(s): 7172358

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -281,6 +281,8 @@ with gr.Blocks(css=css) as demo:
281
  with gr.Column(scale=2):
282
  image_output = gr.Image(show_label=False, type="filepath", interactive=False)
283
  send_to_img2img = gr.Button(value="Send to img2img")
 
 
284
 
285
  text_button.click(txt2img, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height,
286
  seed], outputs=image_output, concurrency_limit=64)
@@ -323,6 +325,7 @@ with gr.Blocks(css=css) as demo:
323
 
324
  with gr.Column(scale=2):
325
  i2i_image_output = gr.Image(show_label=False, type="filepath", interactive=False)
 
326
 
327
  i2i_text_button.click(img2img, inputs=[i2i_image_input, i2i_denoising, i2i_prompt, i2i_negative_prompt,
328
  model, i2i_steps, i2i_sampler, i2i_cfg_scale, i2i_width, i2i_height,
@@ -368,6 +371,8 @@ with gr.Blocks(css=css) as demo:
368
  steps, seed, model, sampler,
369
  width, height, cfg_scale],
370
  concurrency_limit=64)
 
 
371
  with gr.Tab("HuggingFace Inference"):
372
  with gr.Row():
373
  gr.Markdown("Add your model from HF.co, enter model ID.")
 
281
  with gr.Column(scale=2):
282
  image_output = gr.Image(show_label=False, type="filepath", interactive=False)
283
  send_to_img2img = gr.Button(value="Send to img2img")
284
+ send_to_png = gr.Button(value="Send to PNG Info")
285
+
286
 
287
  text_button.click(txt2img, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height,
288
  seed], outputs=image_output, concurrency_limit=64)
 
325
 
326
  with gr.Column(scale=2):
327
  i2i_image_output = gr.Image(show_label=False, type="filepath", interactive=False)
328
+ send_to_png_i2i = gr.Button(value="Send to PNG Info")
329
 
330
  i2i_text_button.click(img2img, inputs=[i2i_image_input, i2i_denoising, i2i_prompt, i2i_negative_prompt,
331
  model, i2i_steps, i2i_sampler, i2i_cfg_scale, i2i_width, i2i_height,
 
371
  steps, seed, model, sampler,
372
  width, height, cfg_scale],
373
  concurrency_limit=64)
374
+ send_to_png.click(send_to_img2img_def, inputs=image_output, outputs=image_input)
375
+ send_to_png_i2i.click(send_to_img2img_def, inputs=i2i_image_output, outputs=image_input)
376
  with gr.Tab("HuggingFace Inference"):
377
  with gr.Row():
378
  gr.Markdown("Add your model from HF.co, enter model ID.")