Update app.py
Browse files
app.py
CHANGED
@@ -298,6 +298,8 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange") as demo:
|
|
298 |
|
299 |
with gr.Tabs():
|
300 |
# ν¨μ
μμ± ν
|
|
|
|
|
301 |
with gr.Tab("Fashion Generation"):
|
302 |
with gr.Column():
|
303 |
mode = gr.Radio(
|
@@ -305,16 +307,38 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange") as demo:
|
|
305 |
label="Generation Mode",
|
306 |
value="Generate Model"
|
307 |
)
|
308 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
309 |
prompt = gr.TextArea(
|
310 |
label="Fashion Description (νκΈ λλ μμ΄)",
|
311 |
placeholder="ν¨μ
λͺ¨λΈμ΄λ μλ₯λ₯Ό μ€λͺ
νμΈμ..."
|
312 |
)
|
313 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
314 |
with gr.Row():
|
315 |
with gr.Column():
|
316 |
result = gr.Image(label="Generated Result")
|
317 |
generate_button = gr.Button("Generate Fashion")
|
|
|
|
|
318 |
|
319 |
with gr.Accordion("Advanced Options", open=False):
|
320 |
with gr.Group():
|
|
|
298 |
|
299 |
with gr.Tabs():
|
300 |
# ν¨μ
μμ± ν
|
301 |
+
|
302 |
+
# ν¨μ
μμ± ν
|
303 |
with gr.Tab("Fashion Generation"):
|
304 |
with gr.Column():
|
305 |
mode = gr.Radio(
|
|
|
307 |
label="Generation Mode",
|
308 |
value="Generate Model"
|
309 |
)
|
310 |
+
|
311 |
+
# μμ ν둬ννΈ μ€μ
|
312 |
+
example_model_prompts = [
|
313 |
+
"professional fashion model, full body shot, standing pose, natural lighting, studio background, high fashion, elegant pose",
|
314 |
+
"fashion model portrait, upper body, confident pose, fashion photography, neutral background, professional lighting",
|
315 |
+
"stylish fashion model, three-quarter view, editorial pose, high-end fashion magazine style, minimal background"
|
316 |
+
]
|
317 |
+
|
318 |
+
example_clothes_prompts = [
|
319 |
+
"luxury designer sweater, cashmere material, cream color, cable knit pattern, high-end fashion, product photography",
|
320 |
+
"elegant business blazer, tailored fit, charcoal grey, premium wool fabric, professional wear",
|
321 |
+
"modern streetwear hoodie, oversized fit, minimalist design, premium cotton, urban style"
|
322 |
+
]
|
323 |
+
|
324 |
prompt = gr.TextArea(
|
325 |
label="Fashion Description (νκΈ λλ μμ΄)",
|
326 |
placeholder="ν¨μ
λͺ¨λΈμ΄λ μλ₯λ₯Ό μ€λͺ
νμΈμ..."
|
327 |
)
|
328 |
+
|
329 |
+
# μμ μΉμ
μΆκ°
|
330 |
+
gr.Examples(
|
331 |
+
examples=example_model_prompts + example_clothes_prompts,
|
332 |
+
inputs=prompt,
|
333 |
+
label="Example Prompts"
|
334 |
+
)
|
335 |
+
|
336 |
with gr.Row():
|
337 |
with gr.Column():
|
338 |
result = gr.Image(label="Generated Result")
|
339 |
generate_button = gr.Button("Generate Fashion")
|
340 |
+
|
341 |
+
|
342 |
|
343 |
with gr.Accordion("Advanced Options", open=False):
|
344 |
with gr.Group():
|