zc-huhu commited on
Commit
4d958b5
Β·
1 Parent(s): 774bdb8

adjust header

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. data/{header.md β†’ header.html} +4 -3
app.py CHANGED
@@ -64,7 +64,7 @@ garm_list_path = [os.path.join(example_path, "garment", garm) for garm in garm_l
64
  person_list = os.listdir(os.path.join(example_path,"person"))
65
  person_list_path = [os.path.join(example_path, "person", person) for person in person_list]
66
 
67
- garm_img_category_mapping = {os.path.basename(garm_file): os.path.basename(garm_file).split("_")[1].capitalize() for garm_file in garm_list_path}
68
 
69
 
70
  def load_header(header_file):
@@ -146,7 +146,7 @@ def run_turbo(person_img, garm_img, category="Top"):
146
  return None, info
147
 
148
  with gr.Blocks(css=tryon_css) as Huhu_Turbo:
149
- gr.HTML(load_header("data/header.md"))
150
  with gr.Row():
151
  with gr.Column(elem_id = "col-garment"):
152
  gr.HTML("""
 
64
  person_list = os.listdir(os.path.join(example_path,"person"))
65
  person_list_path = [os.path.join(example_path, "person", person) for person in person_list]
66
 
67
+ garm_img_category_mapping = {os.path.basename(garm_file): os.path.basename(garm_file).split("_")[2].capitalize() for garm_file in garm_list_path}
68
 
69
 
70
  def load_header(header_file):
 
146
  return None, info
147
 
148
  with gr.Blocks(css=tryon_css) as Huhu_Turbo:
149
+ gr.HTML(load_header("data/header.html"))
150
  with gr.Row():
151
  with gr.Column(elem_id = "col-garment"):
152
  gr.HTML("""
data/{header.md β†’ header.html} RENAMED
@@ -10,13 +10,14 @@
10
  <a href="https://huhu.ai/try-on-api/"><img src="https://img.shields.io/badge/API-Huhu%20AI-red?style=plastic"></a>
11
  </div>
12
  <br>
13
- <div style="display: flex; text-align: center; font-size: 20px; padding-right: 200px; padding-left: 200px;">
14
  Try the fastest virtual try-on model β€” generation can be completed in as little as 10 seconds. <br>
15
  If you like our project please visit our official website for the latest model updates.
16
  </div>
17
  <div style="display: flex; text-align: center; font-size: 16px; padding-right: 200px; padding-left: 200px;">
18
- You can not only use your own garments but also upload your own model photos for generation. After uploading a garment image, please select the corresponding clothing type. <br>
19
- Please ensure that any images you upload (e.g., model photos) do not infringe third-party rights.
 
20
  </div>
21
  </div>
22
  </div>
 
10
  <a href="https://huhu.ai/try-on-api/"><img src="https://img.shields.io/badge/API-Huhu%20AI-red?style=plastic"></a>
11
  </div>
12
  <br>
13
+ <div style="display: flex; text-align: center; font-size: 20px; padding-right: 150px; padding-left: 150px;">
14
  Try the fastest virtual try-on model β€” generation can be completed in as little as 10 seconds. <br>
15
  If you like our project please visit our official website for the latest model updates.
16
  </div>
17
  <div style="display: flex; text-align: center; font-size: 16px; padding-right: 200px; padding-left: 200px;">
18
+ You can not only use your own garments but also upload your own model photos for generation. <br>
19
+ After uploading a garment image, please select the corresponding clothing type. <br>
20
+ <i>Please ensure that any images you upload (e.g., model photos) do not infringe third-party rights.</i>
21
  </div>
22
  </div>
23
  </div>