Spaces:
Runtime error
Runtime error
Commit
Β·
8b3bdd0
1
Parent(s):
e315714
Update app.py
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ def root_route():
|
|
118 |
|
119 |
@app.post(IMAGE_SIMILARITY_DEMO)
|
120 |
async def image_search_local(
|
121 |
-
images_to_search: List[UploadFile], query_image: UploadFile = File(...), top_k: int = 5
|
122 |
):
|
123 |
print(
|
124 |
f"Recived images of length: {len(images_to_search)} needs to retrieve top k : {top_k} similar images as result"
|
@@ -197,6 +197,7 @@ async def image_search_pinecone(
|
|
197 |
top_k: int = 5,
|
198 |
namespace="av_local",
|
199 |
action="query",
|
|
|
200 |
):
|
201 |
|
202 |
try:
|
|
|
118 |
|
119 |
@app.post(IMAGE_SIMILARITY_DEMO)
|
120 |
async def image_search_local(
|
121 |
+
images_to_search: List[UploadFile], query_image: UploadFile = File(...), top_k: int = 5,
|
122 |
):
|
123 |
print(
|
124 |
f"Recived images of length: {len(images_to_search)} needs to retrieve top k : {top_k} similar images as result"
|
|
|
197 |
top_k: int = 5,
|
198 |
namespace="av_local",
|
199 |
action="query",
|
200 |
+
model_type= "huggingface"
|
201 |
):
|
202 |
|
203 |
try:
|