Spaces:
openfree
/
Running on Zero

aiqcamp commited on
Commit
58583c5
โ€ข
1 Parent(s): d1387ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -245,17 +245,17 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as demo:
245
  with gr.Row():
246
  width_slider = gr.Slider(
247
  label="Width",
248
- minimum=720,
249
  maximum=1536,
250
  step=8,
251
  value=720, # Set a default value
252
  )
253
  height_slider = gr.Slider(
254
  label="Height",
255
- minimum=720,
256
  maximum=1536,
257
  step=8,
258
- value=1280, # Set a default value
259
  )
260
  with gr.Row():
261
  num_inference_steps = gr.Slider(label="Steps", minimum=4, maximum=12, step=1, value=8)
@@ -272,14 +272,17 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as demo:
272
  choices=["Full", "1/2", "1/3", "1/4", "Custom"],
273
  value="Full"
274
  )
 
275
  custom_resize_size = gr.Slider(
276
  label="Custom resize size",
277
- minimum=64,
278
  maximum=1024,
279
  step=8,
280
- value=512,
281
- visible=False
282
  )
 
 
283
 
284
  gr.Examples(
285
  examples=[
 
245
  with gr.Row():
246
  width_slider = gr.Slider(
247
  label="Width",
248
+ minimum=256,
249
  maximum=1536,
250
  step=8,
251
  value=720, # Set a default value
252
  )
253
  height_slider = gr.Slider(
254
  label="Height",
255
+ minimum=256,
256
  maximum=1536,
257
  step=8,
258
+ value=480, # Set a default value
259
  )
260
  with gr.Row():
261
  num_inference_steps = gr.Slider(label="Steps", minimum=4, maximum=12, step=1, value=8)
 
272
  choices=["Full", "1/2", "1/3", "1/4", "Custom"],
273
  value="Full"
274
  )
275
+
276
  custom_resize_size = gr.Slider(
277
  label="Custom resize size",
278
+ minimum=256, # ์ด์ „์—๋Š” 720์ด์—ˆ์Šต๋‹ˆ๋‹ค.
279
  maximum=1024,
280
  step=8,
281
+ value=512, # ์ดˆ๊ธฐ ๊ฐ’์ด๋ฏ€๋กœ ์ด ๊ฐ’๋„ ์ ์ ˆํžˆ ์กฐ์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
282
+ visible=False # ๊ธฐ๋ณธ์ ์œผ๋กœ ์ด ์Šฌ๋ผ์ด๋”๋Š” ์ˆจ๊ฒจ์ ธ ์žˆ์œผ๋ฉฐ, 'Custom'์ด ์„ ํƒ๋  ๋•Œ๋งŒ ๋ณด์ž…๋‹ˆ๋‹ค.
283
  )
284
+
285
+
286
 
287
  gr.Examples(
288
  examples=[