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