Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=[
|
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()
|