Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def get_nearest_64(gender, ethnicity, model, no):
|
|
22 |
neighbors = ds.select(index[ix][1:])
|
23 |
neighbor_images = neighbors["image"]
|
24 |
neighbor_captions = [caption.split("/")[-1] for caption in neighbors["image_path"]]
|
25 |
-
return image
|
26 |
|
27 |
with gr.Blocks() as demo:
|
28 |
gender = gr.Radio(gender_labels, label="Gender label")
|
|
|
22 |
neighbors = ds.select(index[ix][1:])
|
23 |
neighbor_images = neighbors["image"]
|
24 |
neighbor_captions = [caption.split("/")[-1] for caption in neighbors["image_path"]]
|
25 |
+
return image, list(zip(neighbor_images, neighbor_captions))
|
26 |
|
27 |
with gr.Blocks() as demo:
|
28 |
gender = gr.Radio(gender_labels, label="Gender label")
|