Spaces:
Paused
Paused
Commit
•
5cee47c
1
Parent(s):
921614f
app.py: update defaults for selection sliders (#3)
Browse files- app.py: update defaults for selection sliders (b9a04e3b16f23fba3dbb98f6185577d2e47a855b)
- app.py: linting (9dd4091c51f37e9c2f9703efd24db4805cb833fb)
Co-authored-by: Stefan Benten <[email protected]>
app.py
CHANGED
@@ -119,7 +119,7 @@ with gr.Blocks(css=css) as demo:
|
|
119 |
with gr.Column(scale=6, min_width=600):
|
120 |
prompt = gr.Textbox("puppies in a cloud, 4k", placeholder="Prompt", show_label=False, lines=3)
|
121 |
negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3)
|
122 |
-
with gr.Column(
|
123 |
text_button = gr.Button("Generate", variant='primary', elem_id="generate")
|
124 |
|
125 |
with gr.Row():
|
@@ -150,18 +150,18 @@ with gr.Blocks(css=css) as demo:
|
|
150 |
])
|
151 |
|
152 |
with gr.Column(scale=1):
|
153 |
-
steps = gr.Slider(label="Sampling Steps",
|
154 |
|
155 |
with gr.Row():
|
156 |
with gr.Column(scale=1):
|
157 |
-
width = gr.Slider(label="Width",
|
158 |
-
height = gr.Slider(label="Height",
|
159 |
|
160 |
with gr.Column(scale=1):
|
161 |
-
batch_size = gr.Slider(label="Batch Size",
|
162 |
-
batch_count = gr.Slider(label="Batch Count",
|
163 |
|
164 |
-
cfg_scale = gr.Slider(label="CFG Scale",
|
165 |
seed = gr.Number(label="Seed", value=-1)
|
166 |
|
167 |
|
|
|
119 |
with gr.Column(scale=6, min_width=600):
|
120 |
prompt = gr.Textbox("puppies in a cloud, 4k", placeholder="Prompt", show_label=False, lines=3)
|
121 |
negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3)
|
122 |
+
with gr.Column():
|
123 |
text_button = gr.Button("Generate", variant='primary', elem_id="generate")
|
124 |
|
125 |
with gr.Row():
|
|
|
150 |
])
|
151 |
|
152 |
with gr.Column(scale=1):
|
153 |
+
steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=30, value=25, step=1)
|
154 |
|
155 |
with gr.Row():
|
156 |
with gr.Column(scale=1):
|
157 |
+
width = gr.Slider(label="Width", minimum=1, maximum=1024, value=512, step=8)
|
158 |
+
height = gr.Slider(label="Height", minimum=1, maximum=1024, value=512, step=8)
|
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=1, value=1)
|
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)
|
166 |
|
167 |
|