masteroko commited on
Commit
63fd686
·
verified ·
1 Parent(s): d424e5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -322,6 +322,17 @@ with gr.Blocks(css=css) as demo:
322
  send_to_txt2img_btn.click(send_to_txt2img, inputs=[image_input], outputs=[tabs, prompt, negative_prompt,
323
  steps, seed, model, sampler,
324
  width, height, cfg_scale],
 
 
 
 
 
 
 
 
 
 
 
325
  concurrency_limit=1024)
326
 
327
  demo.queue(max_size=80, api_open=False).launch(max_threads=8192, show_api=False)
 
322
  send_to_txt2img_btn.click(send_to_txt2img, inputs=[image_input], outputs=[tabs, prompt, negative_prompt,
323
  steps, seed, model, sampler,
324
  width, height, cfg_scale],
325
+
326
+ # Add a new button for the img2img functionality
327
+ send_to_img2img_btn = gr.Button("копировать в данные в img2img")
328
+
329
+ # Add the new button to the PNG Info tab
330
+ with gr.Tab("PNG Info"):
331
+ # ... (existing code)
332
+
333
+ send_to_img2img_btn.click(send_to_txt2img, inputs=[image_input], outputs=[tabs, prompt, negative_prompt,
334
+ steps, seed, model, sampler,
335
+ width, height, cfg_scale],
336
  concurrency_limit=1024)
337
 
338
  demo.queue(max_size=80, api_open=False).launch(max_threads=8192, show_api=False)