Spaces:
Running
Running
Hemil Ghori commited on
Commit ·
ecada1d
1
Parent(s): 17a3289
Update
Browse files
app.py
CHANGED
|
@@ -160,8 +160,8 @@ Upload a **person image** and a **garment image**, choose the garment category a
|
|
| 160 |
> ⚠️ Running on **CPU** — inference may take a few minutes. Reduce *Sampling Steps* for faster results.
|
| 161 |
"""
|
| 162 |
|
| 163 |
-
person_example = os.path.join(EXAMPLES_DIR, "model.
|
| 164 |
-
garment_example = os.path.join(EXAMPLES_DIR, "garment.
|
| 165 |
|
| 166 |
with gr.Blocks(css=CUSTOM_CSS, title="FASHN VTON — Virtual Try-On") as demo:
|
| 167 |
|
|
@@ -179,8 +179,8 @@ with gr.Blocks(css=CUSTOM_CSS, title="FASHN VTON — Virtual Try-On") as demo:
|
|
| 179 |
)
|
| 180 |
if os.path.exists(person_example):
|
| 181 |
gr.Examples(
|
| 182 |
-
examples=[person_example],
|
| 183 |
-
inputs=person_in,
|
| 184 |
label="Person Example",
|
| 185 |
)
|
| 186 |
|
|
@@ -205,8 +205,8 @@ with gr.Blocks(css=CUSTOM_CSS, title="FASHN VTON — Virtual Try-On") as demo:
|
|
| 205 |
)
|
| 206 |
if os.path.exists(garment_example):
|
| 207 |
gr.Examples(
|
| 208 |
-
examples=[garment_example],
|
| 209 |
-
inputs=garment_in,
|
| 210 |
label="Garment Example",
|
| 211 |
)
|
| 212 |
|
|
|
|
| 160 |
> ⚠️ Running on **CPU** — inference may take a few minutes. Reduce *Sampling Steps* for faster results.
|
| 161 |
"""
|
| 162 |
|
| 163 |
+
person_example = os.path.join(EXAMPLES_DIR, "model.jpeg")
|
| 164 |
+
garment_example = os.path.join(EXAMPLES_DIR, "garment.jpeg")
|
| 165 |
|
| 166 |
with gr.Blocks(css=CUSTOM_CSS, title="FASHN VTON — Virtual Try-On") as demo:
|
| 167 |
|
|
|
|
| 179 |
)
|
| 180 |
if os.path.exists(person_example):
|
| 181 |
gr.Examples(
|
| 182 |
+
examples=[[person_example]],
|
| 183 |
+
inputs=[person_in],
|
| 184 |
label="Person Example",
|
| 185 |
)
|
| 186 |
|
|
|
|
| 205 |
)
|
| 206 |
if os.path.exists(garment_example):
|
| 207 |
gr.Examples(
|
| 208 |
+
examples=[[garment_example]],
|
| 209 |
+
inputs=[garment_in],
|
| 210 |
label="Garment Example",
|
| 211 |
)
|
| 212 |
|