Spaces:
Runtime error
Runtime error
Commit
·
321e20e
1
Parent(s):
934c9d7
Update app.py
Browse files
app.py
CHANGED
|
@@ -207,8 +207,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 207 |
with gr.Tab("txt2img", id='t2i'):
|
| 208 |
with gr.Row():
|
| 209 |
with gr.Column(scale=6, min_width=600):
|
| 210 |
-
prompt = gr.Textbox("
|
| 211 |
-
negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3, value="
|
| 212 |
with gr.Column():
|
| 213 |
text_button = gr.Button("Generate", variant='primary', elem_id="generate")
|
| 214 |
|
|
@@ -235,7 +235,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 235 |
seed = gr.Number(label="Seed", value=-1)
|
| 236 |
|
| 237 |
with gr.Column(scale=2):
|
| 238 |
-
image_output = gr.Image(value="
|
| 239 |
|
| 240 |
text_button.click(txt2img, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height,
|
| 241 |
seed], outputs=image_output, concurrency_limit=64)
|
|
@@ -274,7 +274,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 274 |
i2i_seed = gr.Number(label="Seed", value=-1)
|
| 275 |
|
| 276 |
with gr.Column(scale=2):
|
| 277 |
-
i2i_image_output = gr.Image(value="
|
| 278 |
|
| 279 |
i2i_text_button.click(img2img, inputs=[i2i_image_input, i2i_denoising, i2i_prompt, i2i_negative_prompt,
|
| 280 |
model, i2i_steps, i2i_sampler, i2i_cfg_scale, i2i_width, i2i_height,
|
|
|
|
| 207 |
with gr.Tab("txt2img", id='t2i'):
|
| 208 |
with gr.Row():
|
| 209 |
with gr.Column(scale=6, min_width=600):
|
| 210 |
+
prompt = gr.Textbox("", placeholder="Prompt", show_label=False, lines=3)
|
| 211 |
+
negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3, value="")
|
| 212 |
with gr.Column():
|
| 213 |
text_button = gr.Button("Generate", variant='primary', elem_id="generate")
|
| 214 |
|
|
|
|
| 235 |
seed = gr.Number(label="Seed", value=-1)
|
| 236 |
|
| 237 |
with gr.Column(scale=2):
|
| 238 |
+
image_output = gr.Image(value="")
|
| 239 |
|
| 240 |
text_button.click(txt2img, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height,
|
| 241 |
seed], outputs=image_output, concurrency_limit=64)
|
|
|
|
| 274 |
i2i_seed = gr.Number(label="Seed", value=-1)
|
| 275 |
|
| 276 |
with gr.Column(scale=2):
|
| 277 |
+
i2i_image_output = gr.Image(value="")
|
| 278 |
|
| 279 |
i2i_text_button.click(img2img, inputs=[i2i_image_input, i2i_denoising, i2i_prompt, i2i_negative_prompt,
|
| 280 |
model, i2i_steps, i2i_sampler, i2i_cfg_scale, i2i_width, i2i_height,
|