Spaces:
Runtime error
Runtime error
Anonymous Authors
commited on
Commit
·
77abc57
1
Parent(s):
2f9a9a6
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ clusters_by_size = {
|
|
16 |
|
17 |
def show_cluster(cl_id, num_clusters):
|
18 |
cl_dct = clusters_by_size[num_clusters][cl_id]
|
19 |
-
return len(cl_dct['img_path_list']),cl_dct["labels_gender"], cl_dct["labels_model"], cl_dct["labels_ethnicity"], ["/".join(img_path.replace("/", "") for img_path in cl_dct["img_path_list"][:5]]
|
20 |
|
21 |
demo = gr.Interface(fn=show_cluster, inputs=[gr.Slider(0, 50), gr.Radio([12, 24, 48])], outputs=["text", "text", "text", "text", "text"])
|
22 |
demo.launch(debug=True)
|
|
|
16 |
|
17 |
def show_cluster(cl_id, num_clusters):
|
18 |
cl_dct = clusters_by_size[num_clusters][cl_id]
|
19 |
+
return len(cl_dct['img_path_list']),cl_dct["labels_gender"], cl_dct["labels_model"], cl_dct["labels_ethnicity"], ["/".join(img_path.replace("/", "")) for img_path in cl_dct["img_path_list"][:5]]
|
20 |
|
21 |
demo = gr.Interface(fn=show_cluster, inputs=[gr.Slider(0, 50), gr.Radio([12, 24, 48])], outputs=["text", "text", "text", "text", "text"])
|
22 |
demo.launch(debug=True)
|