Anonymous Authors commited on
Commit
a3803bf
·
1 Parent(s): 1b3b48e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def show_cluster(cl_id, num_clusters):
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']),cl_dct["labels_gender"], cl_dct["labels_model"], cl_dct["labels_ethnicity"], images
24
 
25
  with gr.Blocks() as demo:
26
  gr.Markdown("# Cluster Explorer")
 
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']), dict(cl_dct["labels_gender"]), dict(cl_dct["labels_model"]), dict(cl_dct["labels_ethnicity"]), images
24
 
25
  with gr.Blocks() as demo:
26
  gr.Markdown("# Cluster Explorer")