fantos commited on
Commit
d32c1fa
ยท
verified ยท
1 Parent(s): c0fd987

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +57 -25
app.py CHANGED
@@ -257,34 +257,66 @@ function stopAllAudio() {
257
  }
258
  """
259
 
260
- # Gradio ์ธํ„ฐํŽ˜์ด์Šค ๊ตฌ์„ฑ
261
- with gr.Blocks(css=custom_css) as app:
262
- # JavaScript ์ดˆ๊ธฐํ™”
263
- gr.HTML(f"<script>{snow_js}</script>")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
264
 
265
- with gr.Column(elem_classes="container"):
266
- gr.Markdown("# ๐ŸŽ„ X-MAS LoRA", elem_classes="header")
267
-
268
- # ์ด๋ฏธ์ง€ ์ถœ๋ ฅ ์˜์—ญ
269
- with gr.Group(elem_classes="result-box box-common"):
270
- gr.Markdown("### ๐Ÿ–ผ๏ธ Generated Image")
271
- result = gr.Image(label="Result", elem_classes="image-output")
272
-
273
- # ํ”„๋กฌํ”„ํŠธ ์ž…๋ ฅ ์˜์—ญ
274
- with gr.Group(elem_classes="prompt-box box-common"):
275
- prompt = gr.TextArea(
276
- label="โœ๏ธ Your Prompt (ํ•œ๊ธ€ ๋˜๋Š” ์˜์–ด)",
277
- placeholder="์ด๋ฏธ์ง€๋ฅผ ์„ค๋ช…ํ•˜์„ธ์š”...",
278
- lines=5
279
  )
280
- generate_button = gr.Button(
281
- "๐Ÿš€ Generate Image",
282
- elem_classes="generate-btn"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
283
  )
284
-
285
- # ๊ณ ๊ธ‰ ์˜ต์…˜
286
- with gr.Accordion("๐ŸŽจ Advanced Options", open=False, elem_classes="accordion box-common"):
287
- [์ด์ „ ์˜ต์…˜ ์ฝ”๋“œ์™€ ๋™์ผ]
288
 
289
  # ์˜ค๋””์˜ค ์ปจํŠธ๋กค
290
  gr.HTML(f"""
 
257
  }
258
  """
259
 
260
+ # ๊ณ ๊ธ‰ ์˜ต์…˜ ๋ถ€๋ถ„์„ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ˆ˜์ •
261
+ with gr.Accordion("๐ŸŽจ Advanced Options", open=False, elem_classes="accordion box-common"):
262
+ with gr.Group(elem_classes="parameter-box"):
263
+ gr.Markdown("### ๐ŸŽ›๏ธ Generation Parameters")
264
+ with gr.Row():
265
+ with gr.Column():
266
+ cfg_scale = gr.Slider(
267
+ label="CFG Scale",
268
+ minimum=1,
269
+ maximum=20,
270
+ step=0.5,
271
+ value=example_cfg_scale
272
+ )
273
+ steps = gr.Slider(
274
+ label="Steps",
275
+ minimum=1,
276
+ maximum=100,
277
+ step=1,
278
+ value=example_steps
279
+ )
280
+ lora_scale = gr.Slider(
281
+ label="LoRA Scale",
282
+ minimum=0,
283
+ maximum=1,
284
+ step=0.01,
285
+ value=example_lora_scale
286
+ )
287
 
288
+ with gr.Group(elem_classes="parameter-box"):
289
+ gr.Markdown("### ๐Ÿ“ Image Dimensions")
290
+ with gr.Row():
291
+ width = gr.Slider(
292
+ label="Width",
293
+ minimum=256,
294
+ maximum=1536,
295
+ step=64,
296
+ value=example_width
 
 
 
 
 
297
  )
298
+ height = gr.Slider(
299
+ label="Height",
300
+ minimum=256,
301
+ maximum=1536,
302
+ step=64,
303
+ value=example_height
304
+ )
305
+
306
+ with gr.Group(elem_classes="parameter-box"):
307
+ gr.Markdown("### ๐ŸŽฒ Seed Settings")
308
+ with gr.Row():
309
+ randomize_seed = gr.Checkbox(
310
+ True,
311
+ label="Randomize seed"
312
+ )
313
+ seed = gr.Slider(
314
+ label="Seed",
315
+ minimum=0,
316
+ maximum=MAX_SEED,
317
+ step=1,
318
+ value=example_seed
319
  )
 
 
 
 
320
 
321
  # ์˜ค๋””์˜ค ์ปจํŠธ๋กค
322
  gr.HTML(f"""