Update app.py
Browse files
app.py
CHANGED
@@ -234,5 +234,6 @@ with gr.Blocks(css=css) as demo:
|
|
234 |
text_button = gr.Button("Создать", variant='primary', elem_id="generate")
|
235 |
with gr.Column(scale=2):
|
236 |
image_output = gr.Image()
|
237 |
-
|
|
|
238 |
demo.queue(concurrency_count=64, max_size=80, api_open=False).launch(max_threads=256)
|
|
|
234 |
text_button = gr.Button("Создать", variant='primary', elem_id="generate")
|
235 |
with gr.Column(scale=2):
|
236 |
image_output = gr.Image()
|
237 |
+
text_button.click(txt2img, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
|
238 |
+
|
239 |
demo.queue(concurrency_count=64, max_size=80, api_open=False).launch(max_threads=256)
|