cakiki commited on
Commit
4868380
1 Parent(s): 0475e0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -28,7 +28,9 @@ with gr.Blocks() as demo:
28
  ethnicity = gr.Radio(ethnicity_labels, label="Ethnicity label")
29
  model = gr.Radio(models, label="Model")
30
  no = gr.Radio(nos, label="Image number")
31
-
 
 
32
  button = gr.Button(value="Get nearest neighbors")
33
- button.click(get_nearest_64, inputs=[gender, ethnicity, model, no], outputs=[gr.Image(), gr.Gallery().style(grid=[8], height="auto")])
34
  demo.launch()
 
28
  ethnicity = gr.Radio(ethnicity_labels, label="Ethnicity label")
29
  model = gr.Radio(models, label="Model")
30
  no = gr.Radio(nos, label="Image number")
31
+ with gr.Row():
32
+ image = gr.Image(shape=(64,64))
33
+ gallery = gr.Gallery().style(grid=8, height="auto")
34
  button = gr.Button(value="Get nearest neighbors")
35
+ button.click(get_nearest_64, inputs=[gender, ethnicity, model, no], outputs=[image, gallery])
36
  demo.launch()