Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -224,7 +224,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 224 |
|
| 225 |
with gr.Row():
|
| 226 |
with gr.Column(scale=1):
|
| 227 |
-
steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=
|
| 228 |
|
| 229 |
with gr.Row():
|
| 230 |
with gr.Column(scale=1):
|
|
@@ -238,9 +238,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 238 |
|
| 239 |
cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
|
| 240 |
seed = gr.Slider(label="Seed", minimum=-1, maximum=10000000, value=-1)
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
image_output = gr.Image()
|
| 244 |
|
| 245 |
text_button.click(txt2img, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
|
| 246 |
|
|
@@ -276,8 +275,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 276 |
i2i_seed = gr.Slider(label="Seed", minimum=-1, maximum=10000000, value=-1)
|
| 277 |
|
| 278 |
|
| 279 |
-
|
| 280 |
-
|
| 281 |
|
| 282 |
i2i_text_button.click(img2img, inputs=[i2i_image_input, i2i_denoising, i2i_prompt, i2i_negative_prompt, model, i2i_steps, i2i_sampler, i2i_cfg_scale, i2i_width, i2i_height, i2i_seed], outputs=i2i_image_output)
|
| 283 |
demo.queue(concurrency_count=64, max_size=80, api_open=False).launch(max_threads=256)
|
|
|
|
| 224 |
|
| 225 |
with gr.Row():
|
| 226 |
with gr.Column(scale=1):
|
| 227 |
+
steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=100, value=25, step=1)
|
| 228 |
|
| 229 |
with gr.Row():
|
| 230 |
with gr.Column(scale=1):
|
|
|
|
| 238 |
|
| 239 |
cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
|
| 240 |
seed = gr.Slider(label="Seed", minimum=-1, maximum=10000000, value=-1)
|
| 241 |
+
text_button = gr.Button("Генерация", variant='primary', elem_id="generate")
|
| 242 |
+
image_output = gr.Image()
|
|
|
|
| 243 |
|
| 244 |
text_button.click(txt2img, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
|
| 245 |
|
|
|
|
| 275 |
i2i_seed = gr.Slider(label="Seed", minimum=-1, maximum=10000000, value=-1)
|
| 276 |
|
| 277 |
|
| 278 |
+
i2i_text_button = gr.Button("Генерация", variant='primary', elem_id="generate")
|
| 279 |
+
i2i_image_output = gr.Image()
|
| 280 |
|
| 281 |
i2i_text_button.click(img2img, inputs=[i2i_image_input, i2i_denoising, i2i_prompt, i2i_negative_prompt, model, i2i_steps, i2i_sampler, i2i_cfg_scale, i2i_width, i2i_height, i2i_seed], outputs=i2i_image_output)
|
| 282 |
demo.queue(concurrency_count=64, max_size=80, api_open=False).launch(max_threads=256)
|