Spaces:
Runtime error
Runtime error
Commit
Β·
dca463b
1
Parent(s):
0c679e0
Update app.py
Browse files
app.py
CHANGED
@@ -252,7 +252,7 @@ async def image_search_pinecone(
|
|
252 |
|
253 |
return {"similar_images": similar_images}
|
254 |
|
255 |
-
elif action == "index" and len(images_to_search) > 0:
|
256 |
print(
|
257 |
f"Recived images of length: {len(images_to_search)} needs to retrieve top k : {top_k} similar images as result"
|
258 |
)
|
|
|
252 |
|
253 |
return {"similar_images": similar_images}
|
254 |
|
255 |
+
elif action == "index" and (images_to_search is not None) and (len(images_to_search) > 0):
|
256 |
print(
|
257 |
f"Recived images of length: {len(images_to_search)} needs to retrieve top k : {top_k} similar images as result"
|
258 |
)
|