cakiki commited on
Commit
e487345
·
1 Parent(s): 442d337

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -25,10 +25,12 @@ def get_nearest_64(gender, ethnicity, model, no):
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")
29
- ethnicity = gr.Radio(ethnicity_labels, label="Ethnicity label")
30
- model = gr.Radio(models, label="Model")
31
- no = gr.Radio(nos, label="Image number")
 
 
32
  button = gr.Button(value="Get nearest neighbors")
33
  with gr.Row():
34
  image = gr.Image()
 
25
  return image, list(zip(neighbor_images, neighbor_captions))
26
 
27
  with gr.Blocks() as demo:
28
+ with gr.Row():
29
+ gender = gr.Radio(gender_labels, label="Gender label")
30
+ ethnicity = gr.Radio(ethnicity_labels, label="Ethnicity label")
31
+ with gr.Row():
32
+ model = gr.Radio(models, label="Model")
33
+ no = gr.Radio(nos, label="Image number")
34
  button = gr.Button(value="Get nearest neighbors")
35
  with gr.Row():
36
  image = gr.Image()