Spaces:
Runtime error
Runtime error
lixiang46
commited on
Commit
•
ad30fcb
1
Parent(s):
cc17840
update
Browse files
app.py
CHANGED
@@ -95,7 +95,13 @@ with gr.Blocks(css=css) as Tryon:
|
|
95 |
gr.HTML(load_description("assets/title.md"))
|
96 |
with gr.Row():
|
97 |
with gr.Column(elem_id = "col-left"):
|
98 |
-
gr.Markdown("###Step 1. Upload a person image. ⬇️")
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
imgs = gr.Image(label="Person image", sources='upload', type="numpy")
|
100 |
# category = gr.Dropdown(label="Garment category", choices=['upper_body', 'lower_body', 'dresses'], value="upper_body")
|
101 |
example = gr.Examples(
|
@@ -104,7 +110,6 @@ with gr.Blocks(css=css) as Tryon:
|
|
104 |
examples=human_list_path
|
105 |
)
|
106 |
with gr.Column(elem_id = "col-mid"):
|
107 |
-
gr.Markdown("###Step 2. Upload a garment image. ⬇️")
|
108 |
garm_img = gr.Image(label="Garment image", sources='upload', type="numpy")
|
109 |
example = gr.Examples(
|
110 |
inputs=garm_img,
|
@@ -112,7 +117,6 @@ with gr.Blocks(css=css) as Tryon:
|
|
112 |
examples=garm_list_path
|
113 |
)
|
114 |
with gr.Column(elem_id = "col-right"):
|
115 |
-
gr.Markdown("###Step 3. Press the “Run” button to get try-on results.")
|
116 |
image_out = gr.Image(label="Result", show_share_button=False)
|
117 |
with gr.Row():
|
118 |
seed = gr.Slider(
|
|
|
95 |
gr.HTML(load_description("assets/title.md"))
|
96 |
with gr.Row():
|
97 |
with gr.Column(elem_id = "col-left"):
|
98 |
+
gr.Markdown("### Step 1. Upload a person image. ⬇️")
|
99 |
+
with gr.Column(elem_id = "col-mid"):
|
100 |
+
gr.Markdown("### Step 2. Upload a garment image. ⬇️")
|
101 |
+
with gr.Column(elem_id = "col-right"):
|
102 |
+
gr.Markdown("### Step 3. Press the “Run” button to get try-on results.")
|
103 |
+
with gr.Row():
|
104 |
+
with gr.Column(elem_id = "col-left"):
|
105 |
imgs = gr.Image(label="Person image", sources='upload', type="numpy")
|
106 |
# category = gr.Dropdown(label="Garment category", choices=['upper_body', 'lower_body', 'dresses'], value="upper_body")
|
107 |
example = gr.Examples(
|
|
|
110 |
examples=human_list_path
|
111 |
)
|
112 |
with gr.Column(elem_id = "col-mid"):
|
|
|
113 |
garm_img = gr.Image(label="Garment image", sources='upload', type="numpy")
|
114 |
example = gr.Examples(
|
115 |
inputs=garm_img,
|
|
|
117 |
examples=garm_list_path
|
118 |
)
|
119 |
with gr.Column(elem_id = "col-right"):
|
|
|
120 |
image_out = gr.Image(label="Result", show_share_button=False)
|
121 |
with gr.Row():
|
122 |
seed = gr.Slider(
|