Spaces:
Running
Running
lalashechka
commited on
Commit
·
759f4f5
1
Parent(s):
410ba09
Update app.py
Browse files
app.py
CHANGED
@@ -156,7 +156,7 @@ with gr.Blocks(css=css) as demo:
|
|
156 |
with gr.Column():
|
157 |
text_button = gr.Button("Сгенерировать изображение", variant='primary', elem_id="generate")
|
158 |
with gr.Column():
|
159 |
-
image_output = gr.Image(show_label=True, label='Результат:', elem_id='image_output', type='filepath')
|
160 |
text_button.click(flip_text, inputs=[prompt, negative_prompt, task, steps, sampler, cfg_scale, seed], outputs=image_output)
|
161 |
|
162 |
img2img_b = gr.Button("Увеличить изображение", variant='secondary')
|
@@ -164,6 +164,5 @@ with gr.Blocks(css=css) as demo:
|
|
164 |
img2img_b.click(mirror, inputs=[image_output, scale_by, method, gfpgan, codeformer], outputs=image_i2i)
|
165 |
|
166 |
|
167 |
-
|
168 |
-
demo.queue(concurrency_count=12)
|
169 |
demo.launch()
|
|
|
156 |
with gr.Column():
|
157 |
text_button = gr.Button("Сгенерировать изображение", variant='primary', elem_id="generate")
|
158 |
with gr.Column():
|
159 |
+
image_output = gr.Image(show_label=True, show_download_button=True, interactive=True, label='Результат:', elem_id='image_output', type='filepath')
|
160 |
text_button.click(flip_text, inputs=[prompt, negative_prompt, task, steps, sampler, cfg_scale, seed], outputs=image_output)
|
161 |
|
162 |
img2img_b = gr.Button("Увеличить изображение", variant='secondary')
|
|
|
164 |
img2img_b.click(mirror, inputs=[image_output, scale_by, method, gfpgan, codeformer], outputs=image_i2i)
|
165 |
|
166 |
|
167 |
+
demo.queue(concurrency_count=24)
|
|
|
168 |
demo.launch()
|