Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -182,21 +182,21 @@ with gr.Blocks(css="style.css") as demo:
|
|
182 |
value=0,
|
183 |
)
|
184 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
apply_refiner = gr.Checkbox(label="Apply refiner", value=False, visible=ENABLE_REFINER)
|
201 |
with gr.Row():
|
202 |
guidance_scale_base = gr.Slider(
|
@@ -290,10 +290,10 @@ with gr.Blocks(css="style.css") as demo:
|
|
290 |
use_prompt_2,
|
291 |
use_negative_prompt_2,
|
292 |
seed,
|
293 |
-
1024,
|
294 |
-
1024,
|
295 |
-
|
296 |
-
|
297 |
guidance_scale_base,
|
298 |
guidance_scale_refiner,
|
299 |
num_inference_steps_base,
|
|
|
182 |
value=0,
|
183 |
)
|
184 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
|
185 |
+
with gr.Row(visible=False):
|
186 |
+
width = gr.Slider(
|
187 |
+
label="Width",
|
188 |
+
minimum=256,
|
189 |
+
maximum=MAX_IMAGE_SIZE,
|
190 |
+
step=32,
|
191 |
+
value=1024,
|
192 |
+
)
|
193 |
+
height = gr.Slider(
|
194 |
+
label="Height",
|
195 |
+
minimum=256,
|
196 |
+
maximum=MAX_IMAGE_SIZE,
|
197 |
+
step=32,
|
198 |
+
value=1024,
|
199 |
+
)
|
200 |
apply_refiner = gr.Checkbox(label="Apply refiner", value=False, visible=ENABLE_REFINER)
|
201 |
with gr.Row():
|
202 |
guidance_scale_base = gr.Slider(
|
|
|
290 |
use_prompt_2,
|
291 |
use_negative_prompt_2,
|
292 |
seed,
|
293 |
+
# 1024,
|
294 |
+
# 1024,
|
295 |
+
width,
|
296 |
+
height,
|
297 |
guidance_scale_base,
|
298 |
guidance_scale_refiner,
|
299 |
num_inference_steps_base,
|