Spaces:
Runtime error
Runtime error
Anonymous Authors
commited on
Commit
·
ba55ab2
1
Parent(s):
335988f
Update app.py
Browse files
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 |
-
|
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"]),
|