zc-huhu commited on
Commit
48bf0b5
·
1 Parent(s): a59c179
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -15,12 +15,10 @@ person_list_path = [os.path.join(example_path, "person", person) for person in p
15
 
16
  garm_img_category_mapping = {garm_file: os.path.basename(garm_file).split("_")[1].capitalize() for garm_file in garm_list_path}
17
 
18
- print(garm_img_category_mapping)
19
-
20
 
21
  def update_category(selected_garm_file):
22
  selected_category = garm_img_category_mapping.get(selected_garm_file, None)
23
- print(selected_category)
24
  return gr.update(value=selected_category)
25
 
26
  def call_tryon_api(person_file, garm_file, category, model_type='SD_V1'):
 
15
 
16
  garm_img_category_mapping = {garm_file: os.path.basename(garm_file).split("_")[1].capitalize() for garm_file in garm_list_path}
17
 
 
 
18
 
19
  def update_category(selected_garm_file):
20
  selected_category = garm_img_category_mapping.get(selected_garm_file, None)
21
+ print(selected_garm_file, selected_category)
22
  return gr.update(value=selected_category)
23
 
24
  def call_tryon_api(person_file, garm_file, category, model_type='SD_V1'):