Spaces:
Runtime error
Runtime error
Commit
·
1489174
1
Parent(s):
e66c262
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,10 +22,5 @@ def show_cluster(cl_id, num_clusters):
|
|
| 22 |
img_paths.append(img_path)
|
| 23 |
return len(cl_dct['img_path_list']),cl_dct["labels_gender"], cl_dct["labels_model"], cl_dct["labels_ethnicity"], img_paths
|
| 24 |
|
| 25 |
-
for i in range(5):
|
| 26 |
-
img_path = "/".join([st.replace("/", "") for st in cl_dct['img_path_list'][i].split("//")][3:])
|
| 27 |
-
display(Image.open(pjoin(_DATA_PATH, img_path)).convert('RGB'))
|
| 28 |
-
|
| 29 |
-
|
| 30 |
demo = gr.Interface(fn=show_cluster, inputs=[gr.Slider(0, 50), gr.Radio([12, 24, 48])], outputs=["text", "text", "text", "text", "text"])
|
| 31 |
demo.launch(debug=True)
|
|
|
|
| 22 |
img_paths.append(img_path)
|
| 23 |
return len(cl_dct['img_path_list']),cl_dct["labels_gender"], cl_dct["labels_model"], cl_dct["labels_ethnicity"], img_paths
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
demo = gr.Interface(fn=show_cluster, inputs=[gr.Slider(0, 50), gr.Radio([12, 24, 48])], outputs=["text", "text", "text", "text", "text"])
|
| 26 |
demo.launch(debug=True)
|