Spaces:
Paused
Paused
fixing code
Browse files
app.py
CHANGED
@@ -70,10 +70,10 @@ def search_text(query, top_k):
|
|
70 |
top_k_img = 17
|
71 |
|
72 |
hits = util.semantic_search(query_emb, img_emb, top_k=top_k_img)[0]
|
73 |
-
print("Going hits")
|
74 |
images = []
|
75 |
-
print(hits)
|
76 |
-
print(len(hits))
|
77 |
for hit in hits:
|
78 |
photo_name = img_names[hit['corpus_id']]
|
79 |
# print(photo_name)
|
|
|
70 |
top_k_img = 17
|
71 |
|
72 |
hits = util.semantic_search(query_emb, img_emb, top_k=top_k_img)[0]
|
73 |
+
# print("Going hits")
|
74 |
images = []
|
75 |
+
# print(hits)
|
76 |
+
# print(len(hits))
|
77 |
for hit in hits:
|
78 |
photo_name = img_names[hit['corpus_id']]
|
79 |
# print(photo_name)
|