Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -251,8 +251,8 @@ def infer(
|
|
| 251 |
negative_prompt: str = "lowres, {bad}, error, fewer, extra, missing, worst quality, jpeg artifacts, bad quality, watermark, unfinished, displeasing, chromatic aberration, signature, extra digits, artistic error, username, scan, [abstract]",
|
| 252 |
use_negative_prompt: bool = True,
|
| 253 |
seed: int = 7,
|
| 254 |
-
width: int =
|
| 255 |
-
height: int =
|
| 256 |
guidance_scale: float = 3,
|
| 257 |
num_inference_steps: int = 30,
|
| 258 |
randomize_seed: bool = True,
|
|
@@ -343,14 +343,14 @@ with gr.Blocks(css=css) as demo:
|
|
| 343 |
minimum=512,
|
| 344 |
maximum=MAX_IMAGE_SIZE,
|
| 345 |
step=64,
|
| 346 |
-
value=
|
| 347 |
)
|
| 348 |
height = gr.Slider(
|
| 349 |
label="高度",
|
| 350 |
minimum=512,
|
| 351 |
maximum=MAX_IMAGE_SIZE,
|
| 352 |
step=64,
|
| 353 |
-
value=
|
| 354 |
)
|
| 355 |
with gr.Row():
|
| 356 |
guidance_scale = gr.Slider(
|
|
|
|
| 251 |
negative_prompt: str = "lowres, {bad}, error, fewer, extra, missing, worst quality, jpeg artifacts, bad quality, watermark, unfinished, displeasing, chromatic aberration, signature, extra digits, artistic error, username, scan, [abstract]",
|
| 252 |
use_negative_prompt: bool = True,
|
| 253 |
seed: int = 7,
|
| 254 |
+
width: int = 812,
|
| 255 |
+
height: int = 1216,
|
| 256 |
guidance_scale: float = 3,
|
| 257 |
num_inference_steps: int = 30,
|
| 258 |
randomize_seed: bool = True,
|
|
|
|
| 343 |
minimum=512,
|
| 344 |
maximum=MAX_IMAGE_SIZE,
|
| 345 |
step=64,
|
| 346 |
+
value=812,
|
| 347 |
)
|
| 348 |
height = gr.Slider(
|
| 349 |
label="高度",
|
| 350 |
minimum=512,
|
| 351 |
maximum=MAX_IMAGE_SIZE,
|
| 352 |
step=64,
|
| 353 |
+
value=1216,
|
| 354 |
)
|
| 355 |
with gr.Row():
|
| 356 |
guidance_scale = gr.Slider(
|