Spaces:
Runtime error
Runtime error
Anonymous Authors
commited on
Commit
·
e089949
1
Parent(s):
9180a7b
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +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 |
-
images.append((Image.open(os.path.join("identities-images", img_path)), "_".join(img_path.split("/")[0], img_path.split("/")[-1])))
|
| 22 |
return (len(cl_dct['img_path_list']),
|
| 23 |
dict(cl_dct["labels_gender"]),
|
| 24 |
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)), "_".join([img_path.split("/")[0], img_path.split("/")[-1]])))
|
| 22 |
return (len(cl_dct['img_path_list']),
|
| 23 |
dict(cl_dct["labels_gender"]),
|
| 24 |
dict(cl_dct["labels_model"]),
|