ginipick commited on
Commit
2a17121
·
verified ·
1 Parent(s): 6b4d9a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 = MAX_IMAGE_SIZE, # 기본 크기를 최대값으로 설정
111
- custom_height: int = MAX_IMAGE_SIZE, # 기본 크기를 최대값으로 설정
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=MAX_IMAGE_SIZE, # 기본값을 최대 크기로 설정
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=MAX_IMAGE_SIZE, # 기본값을 최대 크기로 설정
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):