sasha HF staff commited on
Commit
78db2a1
1 Parent(s): 777a836

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ ds.add_faiss_index(column='embeddings')
17
  def query(image, number_to_retrieve=1):
18
  input_image = model.encode(image)
19
  scores, retrieved_examples = ds.get_nearest_examples('embeddings', input_image, k=number_to_retrieve)
20
- return retrieved_examples['image']
21
 
22
 
23
  with gr.Blocks() as demo:
 
17
  def query(image, number_to_retrieve=1):
18
  input_image = model.encode(image)
19
  scores, retrieved_examples = ds.get_nearest_examples('embeddings', input_image, k=number_to_retrieve)
20
+ return retrieved_examples['image'][0]
21
 
22
 
23
  with gr.Blocks() as demo: