Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -323,7 +323,16 @@ with gr.Blocks(css=css) as demo:
|
|
323 |
steps, seed, model, sampler,
|
324 |
width, height, cfg_scale],)
|
325 |
|
326 |
-
|
327 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
328 |
|
329 |
demo.queue(max_size=80, api_open=False).launch(max_threads=8192, show_api=False)
|
|
|
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)
|