Spaces:
Build error
Build error
Commit ·
45b74cd
1
Parent(s): 17d2df5
app.py
Browse files
app.py
CHANGED
|
@@ -92,7 +92,7 @@ def image_search(search_text, search_image, option):
|
|
| 92 |
if option == "Text-To-Image" :
|
| 93 |
# Extracting text features embeddings
|
| 94 |
#text_features = encode_search_query(search_text, model, device)
|
| 95 |
-
text_emb = model.encode([
|
| 96 |
|
| 97 |
# Find the matched Images
|
| 98 |
#matched_images = find_matches(text_features, photo_features, photo_ids, 4)
|
|
|
|
| 92 |
if option == "Text-To-Image" :
|
| 93 |
# Extracting text features embeddings
|
| 94 |
#text_features = encode_search_query(search_text, model, device)
|
| 95 |
+
text_emb = model.encode([search_text], convert_to_tensor=True)
|
| 96 |
|
| 97 |
# Find the matched Images
|
| 98 |
#matched_images = find_matches(text_features, photo_features, photo_ids, 4)
|