Update app.py
Browse files
app.py
CHANGED
|
@@ -330,9 +330,9 @@ def generate_image(prompt, structure_image, style_image, depth_strength=15, styl
|
|
| 330 |
|
| 331 |
# Create Gradio interface
|
| 332 |
examples = [
|
| 333 |
-
["person wearing fashionable clothing", "
|
| 334 |
-
["person wearing elegant dress", "
|
| 335 |
-
["person wearing casual outfit", "
|
| 336 |
]
|
| 337 |
|
| 338 |
output_image = gr.Image(label="Virtual Try-On Result")
|
|
@@ -386,20 +386,6 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange") as app:
|
|
| 386 |
with gr.Column():
|
| 387 |
output_image.render()
|
| 388 |
|
| 389 |
-
gr.Markdown("""
|
| 390 |
-
### How to Use:
|
| 391 |
-
1. Upload your full-body photo
|
| 392 |
-
2. Upload the clothing item you want to try on
|
| 393 |
-
3. Adjust the fitting and style strength if needed
|
| 394 |
-
4. Add a description of the desired style (optional)
|
| 395 |
-
5. Click 'Generate Try-On' to see the result
|
| 396 |
-
|
| 397 |
-
### Tips:
|
| 398 |
-
- Use clear, well-lit photos
|
| 399 |
-
- Full-body photos work best
|
| 400 |
-
- Clothing items should be on a clean background
|
| 401 |
-
- Adjust the fitting strength for better results
|
| 402 |
-
""")
|
| 403 |
|
| 404 |
generate_btn.click(
|
| 405 |
fn=generate_image,
|
|
|
|
| 330 |
|
| 331 |
# Create Gradio interface
|
| 332 |
examples = [
|
| 333 |
+
["person wearing fashionable clothing", "f1.webp", "f11.webp", 15, 0.6],
|
| 334 |
+
["person wearing elegant dress", "f2.webp", "f21.webp", 15, 0.5],
|
| 335 |
+
["person wearing casual outfit", "f3.webp", "f31.webp", 15, 0.5],
|
| 336 |
]
|
| 337 |
|
| 338 |
output_image = gr.Image(label="Virtual Try-On Result")
|
|
|
|
| 386 |
with gr.Column():
|
| 387 |
output_image.render()
|
| 388 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 389 |
|
| 390 |
generate_btn.click(
|
| 391 |
fn=generate_image,
|