Spaces:
Runtime error
Runtime error
lixiang46
commited on
Commit
•
75346d0
1
Parent(s):
b679b7d
add examepls
Browse files
app.py
CHANGED
@@ -118,13 +118,14 @@ with gr.Blocks(css=css) as Tryon:
|
|
118 |
|
119 |
try_button.click(fn=start_tryon, inputs=[imgs, garm_img, seed, randomize_seed], outputs=[image_out, seed_used, result_info], api_name='tryon')
|
120 |
|
|
|
121 |
with gr.Row():
|
122 |
-
image1 = gr.Image(label="
|
123 |
-
image2 = gr.Image(label="
|
124 |
-
image3 = gr.Image(label="
|
125 |
gr.Examples(
|
126 |
examples=[
|
127 |
-
["examples/model1.png", "examples/garment1.png", "examples/result1.png"]
|
128 |
],
|
129 |
inputs=[image1, image2, image3],
|
130 |
label=None,
|
|
|
118 |
|
119 |
try_button.click(fn=start_tryon, inputs=[imgs, garm_img, seed, randomize_seed], outputs=[image_out, seed_used, result_info], api_name='tryon')
|
120 |
|
121 |
+
gr.Markdown("## Show Case")
|
122 |
with gr.Row():
|
123 |
+
image1 = gr.Image(label="Model", scale=1, value="assets/examples/model1.png")
|
124 |
+
image2 = gr.Image(label="Garment", scale=1, value="assets/examples/garment1.jpg")
|
125 |
+
image3 = gr.Image(label="Result", scale=1, value="assets/examples/result1.png")
|
126 |
gr.Examples(
|
127 |
examples=[
|
128 |
+
["assets/examples/model1.png", "assets/examples/garment1.png", "assets/examples/result1.png"]
|
129 |
],
|
130 |
inputs=[image1, image2, image3],
|
131 |
label=None,
|