Samuel Schmidt commited on
Commit
cbf56b1
·
1 Parent(s): f333b58

Update src/app.py

Browse files
Files changed (1) hide show
  1. src/app.py +2 -2
src/app.py CHANGED
@@ -92,7 +92,7 @@ def get_neighbors(query_image, selected_descriptor, top_k=5):
92
  return []
93
 
94
 
95
- def load_cbir_dataset(datasetname, size):
96
  pass
97
 
98
  # Define the Gradio Interface
@@ -125,7 +125,7 @@ with gr.Blocks() as demo:
125
  value=["huggan/CelebA-faces"]
126
  )
127
  btn_index = gr.Button(value="Switch Dataset")
128
- btn_index.click(load_cbir_dataset, inputs=[dataset_dropdown], outputs=[dataset_with_embeddings])
129
  btn.click(get_neighbors, inputs=[image_input, checkboxes_descr], outputs=[gallery_output])
130
 
131
  # gr.Markdown(
 
92
  return []
93
 
94
 
95
+ def load_cbir_dataset(datasetname, size=1000):
96
  pass
97
 
98
  # Define the Gradio Interface
 
125
  value=["huggan/CelebA-faces"]
126
  )
127
  btn_index = gr.Button(value="Switch Dataset")
128
+ btn_index.click(load_cbir_dataset, inputs=[dataset_dropdown])
129
  btn.click(get_neighbors, inputs=[image_input, checkboxes_descr], outputs=[gallery_output])
130
 
131
  # gr.Markdown(