Update app.py
Browse files
app.py
CHANGED
|
@@ -107,8 +107,8 @@ def generate(
|
|
| 107 |
prompt: str,
|
| 108 |
negative_prompt: str = DEFAULT_NEGATIVE_PROMPT,
|
| 109 |
seed: int = 0,
|
| 110 |
-
custom_width: int =
|
| 111 |
-
custom_height: int =
|
| 112 |
guidance_scale: float = 6.0,
|
| 113 |
num_inference_steps: int = 25,
|
| 114 |
sampler: str = "Euler a",
|
|
@@ -385,7 +385,7 @@ with gr.Blocks(css=custom_css, theme="default") as demo:
|
|
| 385 |
minimum=MIN_IMAGE_SIZE,
|
| 386 |
maximum=MAX_IMAGE_SIZE,
|
| 387 |
step=8,
|
| 388 |
-
value=
|
| 389 |
info=f"Image width (between {MIN_IMAGE_SIZE} and {MAX_IMAGE_SIZE})",
|
| 390 |
)
|
| 391 |
custom_height = gr.Slider(
|
|
@@ -393,7 +393,7 @@ with gr.Blocks(css=custom_css, theme="default") as demo:
|
|
| 393 |
minimum=MIN_IMAGE_SIZE,
|
| 394 |
maximum=MAX_IMAGE_SIZE,
|
| 395 |
step=8,
|
| 396 |
-
value=
|
| 397 |
info=f"Image height (between {MIN_IMAGE_SIZE} and {MAX_IMAGE_SIZE})",
|
| 398 |
)
|
| 399 |
with gr.Accordion(label="Advanced Parameters", open=False):
|
|
|
|
| 107 |
prompt: str,
|
| 108 |
negative_prompt: str = DEFAULT_NEGATIVE_PROMPT,
|
| 109 |
seed: int = 0,
|
| 110 |
+
custom_width: int = 1024, # 기본 크기를 1024로 설정
|
| 111 |
+
custom_height: int = 1024, # 기본 크기를 1024로 설정
|
| 112 |
guidance_scale: float = 6.0,
|
| 113 |
num_inference_steps: int = 25,
|
| 114 |
sampler: str = "Euler a",
|
|
|
|
| 385 |
minimum=MIN_IMAGE_SIZE,
|
| 386 |
maximum=MAX_IMAGE_SIZE,
|
| 387 |
step=8,
|
| 388 |
+
value=1024, # 기본값 1024
|
| 389 |
info=f"Image width (between {MIN_IMAGE_SIZE} and {MAX_IMAGE_SIZE})",
|
| 390 |
)
|
| 391 |
custom_height = gr.Slider(
|
|
|
|
| 393 |
minimum=MIN_IMAGE_SIZE,
|
| 394 |
maximum=MAX_IMAGE_SIZE,
|
| 395 |
step=8,
|
| 396 |
+
value=1024, # 기본값 1024
|
| 397 |
info=f"Image height (between {MIN_IMAGE_SIZE} and {MAX_IMAGE_SIZE})",
|
| 398 |
)
|
| 399 |
with gr.Accordion(label="Advanced Parameters", open=False):
|