Spaces:
Runtime error
Runtime error
Update run/gradio_ootd.py
Browse files- run/gradio_ootd.py +6 -6
run/gradio_ootd.py
CHANGED
|
@@ -194,29 +194,29 @@ with block:
|
|
| 194 |
label="Examples (upper-body/lower-body)",
|
| 195 |
inputs=vton_img_dc,
|
| 196 |
examples_per_page=7,
|
| 197 |
-
|
| 198 |
-
|
| 199 |
# os.path.join(example_path, 'model/049447_0.jpg'),
|
| 200 |
# os.path.join(example_path, 'model/049713_0.jpg'),
|
| 201 |
# os.path.join(example_path, 'model/051482_0.jpg'),
|
| 202 |
# os.path.join(example_path, 'model/051918_0.jpg'),
|
| 203 |
# os.path.join(example_path, 'model/051962_0.jpg'),
|
| 204 |
# os.path.join(example_path, 'model/049205_0.jpg'),
|
| 205 |
-
|
| 206 |
)
|
| 207 |
example = gr.Examples(
|
| 208 |
label="Examples (dress)",
|
| 209 |
inputs=vton_img_dc,
|
| 210 |
examples_per_page=7,
|
| 211 |
-
|
| 212 |
-
|
| 213 |
# os.path.join(example_path, 'model/052767_0.jpg'),
|
| 214 |
# os.path.join(example_path, 'model/052472_0.jpg'),
|
| 215 |
# os.path.join(example_path, 'model/053514_0.jpg'),
|
| 216 |
# os.path.join(example_path, 'model/053228_0.jpg'),
|
| 217 |
# os.path.join(example_path, 'model/052964_0.jpg'),
|
| 218 |
# os.path.join(example_path, 'model/053700_0.jpg'),
|
| 219 |
-
|
| 220 |
)
|
| 221 |
with gr.Column():
|
| 222 |
garm_img_dc = gr.Image(label="Garment", sources='upload', type="filepath", height=384, value=garment_dc)
|
|
|
|
| 194 |
label="Examples (upper-body/lower-body)",
|
| 195 |
inputs=vton_img_dc,
|
| 196 |
examples_per_page=7,
|
| 197 |
+
examples=[
|
| 198 |
+
os.path.join(example_path, 'model/model_8.png')
|
| 199 |
# os.path.join(example_path, 'model/049447_0.jpg'),
|
| 200 |
# os.path.join(example_path, 'model/049713_0.jpg'),
|
| 201 |
# os.path.join(example_path, 'model/051482_0.jpg'),
|
| 202 |
# os.path.join(example_path, 'model/051918_0.jpg'),
|
| 203 |
# os.path.join(example_path, 'model/051962_0.jpg'),
|
| 204 |
# os.path.join(example_path, 'model/049205_0.jpg'),
|
| 205 |
+
]
|
| 206 |
)
|
| 207 |
example = gr.Examples(
|
| 208 |
label="Examples (dress)",
|
| 209 |
inputs=vton_img_dc,
|
| 210 |
examples_per_page=7,
|
| 211 |
+
examples=[
|
| 212 |
+
os.path.join(example_path, 'model/model_9.png')
|
| 213 |
# os.path.join(example_path, 'model/052767_0.jpg'),
|
| 214 |
# os.path.join(example_path, 'model/052472_0.jpg'),
|
| 215 |
# os.path.join(example_path, 'model/053514_0.jpg'),
|
| 216 |
# os.path.join(example_path, 'model/053228_0.jpg'),
|
| 217 |
# os.path.join(example_path, 'model/052964_0.jpg'),
|
| 218 |
# os.path.join(example_path, 'model/053700_0.jpg'),
|
| 219 |
+
]
|
| 220 |
)
|
| 221 |
with gr.Column():
|
| 222 |
garm_img_dc = gr.Image(label="Garment", sources='upload', type="filepath", height=384, value=garment_dc)
|