Anonymous Authors commited on
Commit
ba55ab2
·
1 Parent(s): 335988f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -18,8 +18,7 @@ def show_cluster(cl_id, num_clusters):
18
  images = []
19
  for i in range(6):
20
  img_path = "/".join([st.replace("/", "") for st in cl_dct['img_path_list'][i].split("//")][3:])
21
- img_path = os.path.join("identities-images", img_path)
22
- images.append(Image.open(img_path))
23
  return (len(cl_dct['img_path_list']),
24
  dict(cl_dct["labels_gender"]),
25
  dict(cl_dct["labels_model"]),
 
18
  images = []
19
  for i in range(6):
20
  img_path = "/".join([st.replace("/", "") for st in cl_dct['img_path_list'][i].split("//")][3:])
21
+ images.append((Image.open(os.path.join("identities-images", img_path)), img_path))
 
22
  return (len(cl_dct['img_path_list']),
23
  dict(cl_dct["labels_gender"]),
24
  dict(cl_dct["labels_model"]),