Spaces:
Runtime error
Runtime error
Commit
·
4425514
1
Parent(s):
e0a1f6f
Update app.py
Browse files
app.py
CHANGED
|
@@ -124,8 +124,12 @@ with gr.Blocks(css=css) as demo:
|
|
| 124 |
|
| 125 |
with gr.Row():
|
| 126 |
with gr.Column(scale=3):
|
| 127 |
-
|
| 128 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
with gr.Column(scale=1):
|
| 130 |
sampler = gr.Dropdown(value="DPM++ SDE", show_label=True, label="Sampler", choices=[
|
| 131 |
"Euler",
|
|
@@ -159,16 +163,11 @@ with gr.Blocks(css=css) as demo:
|
|
| 159 |
|
| 160 |
with gr.Column(scale=1):
|
| 161 |
batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
|
| 162 |
-
batch_count = gr.Slider(label="Batch Count", maximum=
|
| 163 |
|
| 164 |
cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
|
| 165 |
seed = gr.Number(label="Seed", value=-1, info = """'-1' is a random seed""")
|
| 166 |
|
| 167 |
-
|
| 168 |
-
with gr.Column(scale=2):
|
| 169 |
-
image_output = gr.Gallery(label="Result Image(s)", show_download_button=False, show_share_button=True)
|
| 170 |
-
|
| 171 |
-
|
| 172 |
text_button.click(flip_text, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
|
| 173 |
|
| 174 |
demo.queue(concurrency_count=10)
|
|
|
|
| 124 |
|
| 125 |
with gr.Row():
|
| 126 |
with gr.Column(scale=3):
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
with gr.Column(scale=2):
|
| 130 |
+
image_output = gr.Gallery(label="Result Image(s)", show_download_button=False, show_share_button=True)
|
| 131 |
+
|
| 132 |
+
with gr.Accordion("Advanced options", open=False):
|
| 133 |
with gr.Column(scale=1):
|
| 134 |
sampler = gr.Dropdown(value="DPM++ SDE", show_label=True, label="Sampler", choices=[
|
| 135 |
"Euler",
|
|
|
|
| 163 |
|
| 164 |
with gr.Column(scale=1):
|
| 165 |
batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
|
| 166 |
+
batch_count = gr.Slider(label="Batch Count", maximum=1, value=1)
|
| 167 |
|
| 168 |
cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
|
| 169 |
seed = gr.Number(label="Seed", value=-1, info = """'-1' is a random seed""")
|
| 170 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
text_button.click(flip_text, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
|
| 172 |
|
| 173 |
demo.queue(concurrency_count=10)
|