Anonymous Authors commited on
Commit
c0972d9
·
1 Parent(s): 6e20d7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -27,6 +27,9 @@ def get_nearest_64(gender, ethnicity, model, no):
27
  return image, list(zip(neighbor_images, neighbor_captions))
28
 
29
  with gr.Blocks() as demo:
 
 
 
30
  with gr.Row():
31
  with gr.Column():
32
  gender = gr.Radio(gender_labels, label="Gender label")
 
27
  return image, list(zip(neighbor_images, neighbor_captions))
28
 
29
  with gr.Blocks() as demo:
30
+ gr.Markdown("# BoVW Nearest Neighbors")
31
+ gr.Markdown("### TF-IDF index of the `identities` dataset of images generated by 3 models using a visual vocabulary of 10,752 words.")
32
+ gr.Markdown("#### Choose one of the generated identity images to see its nearest neighbors according to a bag-of-visual-words model.")
33
  with gr.Row():
34
  with gr.Column():
35
  gender = gr.Radio(gender_labels, label="Gender label")