Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
|
|
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()
|