cakiki commited on
Commit
8720503
1 Parent(s): 9b568ab

Update app.py

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