Spaces:
Runtime error
Runtime error
Commit
Β·
6514fe3
1
Parent(s):
8b3bdd0
Update app.py
Browse files
app.py
CHANGED
@@ -218,7 +218,7 @@ async def image_search_pinecone(
|
|
218 |
print("Indexing query image...")
|
219 |
query_image = enhance_image(query_image)
|
220 |
if model_type =="huggingface":
|
221 |
-
prompt_embedding = get_clip_vectors(query_image)
|
222 |
else:
|
223 |
prompt_embedding = image_sim_model.encode(query_image, convert_to_tensor=True).tolist()
|
224 |
if INDEX_NAME not in pinecone.list_indexes():
|
|
|
218 |
print("Indexing query image...")
|
219 |
query_image = enhance_image(query_image)
|
220 |
if model_type =="huggingface":
|
221 |
+
prompt_embedding = get_clip_vectors(query_image).tolist()
|
222 |
else:
|
223 |
prompt_embedding = image_sim_model.encode(query_image, convert_to_tensor=True).tolist()
|
224 |
if INDEX_NAME not in pinecone.list_indexes():
|