Spaces:
Runtime error
Runtime error
Samuel Schmidt
commited on
Commit
·
5a5b371
1
Parent(s):
cbf56b1
Update src/app.py
Browse files- src/app.py +2 -4
src/app.py
CHANGED
@@ -110,12 +110,10 @@ with gr.Blocks() as demo:
|
|
110 |
image_input = gr.Image(type="pil", label="Please upload your image")
|
111 |
gallery_output = gr.Gallery()
|
112 |
|
113 |
-
checkboxes_descr = gr.CheckboxGroup(["Color Descriptor", "LBP", "CLIP"], label="Please choose an descriptor")
|
114 |
-
|
115 |
btn = gr.Button(value="Submit")
|
116 |
gr.Markdown("""
|
117 |
## Settings
|
118 |
-
Here you can adjust how
|
119 |
""")
|
120 |
|
121 |
with gr.Row():
|
@@ -124,7 +122,7 @@ with gr.Blocks() as demo:
|
|
124 |
["huggan/CelebA-faces", "EIT/cbir-eit"],
|
125 |
value=["huggan/CelebA-faces"]
|
126 |
)
|
127 |
-
|
128 |
btn_index.click(load_cbir_dataset, inputs=[dataset_dropdown])
|
129 |
btn.click(get_neighbors, inputs=[image_input, checkboxes_descr], outputs=[gallery_output])
|
130 |
|
|
|
110 |
image_input = gr.Image(type="pil", label="Please upload your image")
|
111 |
gallery_output = gr.Gallery()
|
112 |
|
|
|
|
|
113 |
btn = gr.Button(value="Submit")
|
114 |
gr.Markdown("""
|
115 |
## Settings
|
116 |
+
Here you can adjust how the images are found
|
117 |
""")
|
118 |
|
119 |
with gr.Row():
|
|
|
122 |
["huggan/CelebA-faces", "EIT/cbir-eit"],
|
123 |
value=["huggan/CelebA-faces"]
|
124 |
)
|
125 |
+
btn_index = gr.Button(value="Switch Dataset")
|
126 |
btn_index.click(load_cbir_dataset, inputs=[dataset_dropdown])
|
127 |
btn.click(get_neighbors, inputs=[image_input, checkboxes_descr], outputs=[gallery_output])
|
128 |
|