Update app.py
Browse files
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=
|
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 |
maximum=1536,
|
257 |
step=8,
|
258 |
-
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=
|
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=[
|