Spaces:
Runtime error
Runtime error
Anonymous Authors
commited on
Commit
·
c303e42
1
Parent(s):
508db10
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,6 @@ def get_nearest_64(gender, ethnicity, model, no):
|
|
21 |
neighbors = ds.select(index[ix][1:9])
|
22 |
neighbor_images = neighbors["image"]
|
23 |
neighbor_captions = [caption.split("/")[-1] for caption in neighbors["image_path"]]
|
24 |
-
Photo_portrait_of_a_Pacific_Islander_person_at_work_6.jpg
|
25 |
neighbor_captions = [' '.join(caption.split("_")[4:-3]) for caption in neighbor_captions]
|
26 |
neighbor_models = neighbors["model"]
|
27 |
neighbor_captions = [f"{a} {b}" for a,b in zip(neighbor_captions,neighbor_models)]
|
|
|
21 |
neighbors = ds.select(index[ix][1:9])
|
22 |
neighbor_images = neighbors["image"]
|
23 |
neighbor_captions = [caption.split("/")[-1] for caption in neighbors["image_path"]]
|
|
|
24 |
neighbor_captions = [' '.join(caption.split("_")[4:-3]) for caption in neighbor_captions]
|
25 |
neighbor_models = neighbors["model"]
|
26 |
neighbor_captions = [f"{a} {b}" for a,b in zip(neighbor_captions,neighbor_models)]
|