istudio commited on
Commit
32a15d9
·
verified ·
1 Parent(s): d5b304f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
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,"cloth"))
156
- garm_list_path = [os.path.join(example_path,"cloth",garm) for garm in garm_list]
157
 
158
- human_list = os.listdir(os.path.join(example_path,"human"))
159
- human_list_path = [os.path.join(example_path,"human",human) for human in human_list]
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("assets/title.md"))
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
- ["assets/examples/model2.png", "assets/examples/garment2.png", "assets/examples/result2.png"],
268
- ["assets/examples/model3.png", "assets/examples/garment3.png", "assets/examples/result3.png"],
269
- ["assets/examples/model1.png", "assets/examples/garment1.png", "assets/examples/result1.png"],
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