Update app.py
Browse files
app.py
CHANGED
@@ -152,11 +152,11 @@ MAX_SEED = 999999
|
|
152 |
|
153 |
example_path = os.path.join(os.path.dirname(__file__), 'assets')
|
154 |
|
155 |
-
garm_list = os.listdir(os.path.join(example_path,"
|
156 |
-
garm_list_path = [os.path.join(example_path,"
|
157 |
|
158 |
-
human_list = os.listdir(os.path.join(example_path,"
|
159 |
-
human_list_path = [os.path.join(example_path,"
|
160 |
|
161 |
css="""
|
162 |
#col-left {
|
@@ -189,7 +189,7 @@ def change_imgs(image1, image2):
|
|
189 |
return image1, image2
|
190 |
|
191 |
with gr.Blocks(css=css) as Tryon:
|
192 |
-
gr.HTML(load_description("
|
193 |
with gr.Row():
|
194 |
with gr.Column(elem_id = "col-left"):
|
195 |
gr.HTML("""
|
@@ -264,9 +264,9 @@ with gr.Blocks(css=css) as Tryon:
|
|
264 |
""")
|
265 |
show_case = gr.Examples(
|
266 |
examples=[
|
267 |
-
["
|
268 |
-
["
|
269 |
-
["
|
270 |
],
|
271 |
inputs=[imgs, garm_img, image_out],
|
272 |
label=None
|
|
|
152 |
|
153 |
example_path = os.path.join(os.path.dirname(__file__), 'assets')
|
154 |
|
155 |
+
garm_list = os.listdir(os.path.join(example_path,"images"))
|
156 |
+
garm_list_path = [os.path.join(example_path,"images",garm) for garm in garm_list]
|
157 |
|
158 |
+
human_list = os.listdir(os.path.join(example_path,"js"))
|
159 |
+
human_list_path = [os.path.join(example_path,"js",human) for human in human_list]
|
160 |
|
161 |
css="""
|
162 |
#col-left {
|
|
|
189 |
return image1, image2
|
190 |
|
191 |
with gr.Blocks(css=css) as Tryon:
|
192 |
+
gr.HTML(load_description("static/title.md"))
|
193 |
with gr.Row():
|
194 |
with gr.Column(elem_id = "col-left"):
|
195 |
gr.HTML("""
|
|
|
264 |
""")
|
265 |
show_case = gr.Examples(
|
266 |
examples=[
|
267 |
+
["static/interpolation/model2.png", "static/interpolation/garment2.png", "static/interpolation/result2.png"],
|
268 |
+
["static/interpolation/model3.png", "static/interpolation/garment3.png", "static/interpolation/result3.png"],
|
269 |
+
["static/interpolation/model1.png", "static/interpolation/garment1.png", "static/interpolation/result1.png"],
|
270 |
],
|
271 |
inputs=[imgs, garm_img, image_out],
|
272 |
label=None
|