cakiki commited on
Commit
d052173
·
1 Parent(s): c504986

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.resize((32,32)), list(zip([i.resize((32,32)) for i in neighbor_images], neighbor_captions))
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")