Update app.py
Browse files
app.py
CHANGED
@@ -330,7 +330,7 @@ def app_gradio():
|
|
330 |
with gr.Blocks(theme=gr.themes.Soft(primary_hue="green", secondary_hue="blue"), css=css) as demo:
|
331 |
gr.Markdown(
|
332 |
"""
|
333 |
-
#
|
334 |
Transform your look with AI-powered virtual clothing try-on!
|
335 |
"""
|
336 |
)
|
@@ -361,13 +361,7 @@ def app_gradio():
|
|
361 |
elem_classes="image-container"
|
362 |
)
|
363 |
with gr.Column(scale=1, min_width=120):
|
364 |
-
|
365 |
-
"""
|
366 |
-
### π― Masking Options
|
367 |
-
1. Draw mask manually with ποΈ
|
368 |
-
2. Auto-generate based on clothing type
|
369 |
-
"""
|
370 |
-
)
|
371 |
cloth_type = gr.Radio(
|
372 |
label="Clothing Type",
|
373 |
choices=["upper", "lower", "overall"],
|
@@ -376,13 +370,7 @@ def app_gradio():
|
|
376 |
)
|
377 |
|
378 |
submit = gr.Button("π Generate Try-On", elem_classes="primary-button")
|
379 |
-
|
380 |
-
"""
|
381 |
-
<div class="warning-text">
|
382 |
-
β οΈ Please click only once and wait patiently for processing
|
383 |
-
</div>
|
384 |
-
"""
|
385 |
-
)
|
386 |
|
387 |
with gr.Accordion("βοΈ Advanced Settings", open=False):
|
388 |
num_inference_steps = gr.Slider(
|
@@ -502,18 +490,7 @@ def app_gradio():
|
|
502 |
result_image,
|
503 |
)
|
504 |
|
505 |
-
|
506 |
-
"""
|
507 |
-
### π‘ Tips & Instructions
|
508 |
-
1. Upload or select a person image
|
509 |
-
2. Choose or upload a clothing item
|
510 |
-
3. Select clothing type (upper/lower/overall)
|
511 |
-
4. Adjust advanced settings if needed
|
512 |
-
5. Click Generate and wait for results
|
513 |
-
|
514 |
-
For best results, use clear, front-facing images with good lighting.
|
515 |
-
"""
|
516 |
-
)
|
517 |
|
518 |
demo.queue().launch(share=True, show_error=True)
|
519 |
|
|
|
330 |
with gr.Blocks(theme=gr.themes.Soft(primary_hue="green", secondary_hue="blue"), css=css) as demo:
|
331 |
gr.Markdown(
|
332 |
"""
|
333 |
+
# π Fashion Fit
|
334 |
Transform your look with AI-powered virtual clothing try-on!
|
335 |
"""
|
336 |
)
|
|
|
361 |
elem_classes="image-container"
|
362 |
)
|
363 |
with gr.Column(scale=1, min_width=120):
|
364 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
365 |
cloth_type = gr.Radio(
|
366 |
label="Clothing Type",
|
367 |
choices=["upper", "lower", "overall"],
|
|
|
370 |
)
|
371 |
|
372 |
submit = gr.Button("π Generate Try-On", elem_classes="primary-button")
|
373 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
374 |
|
375 |
with gr.Accordion("βοΈ Advanced Settings", open=False):
|
376 |
num_inference_steps = gr.Slider(
|
|
|
490 |
result_image,
|
491 |
)
|
492 |
|
493 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
494 |
|
495 |
demo.queue().launch(share=True, show_error=True)
|
496 |
|