Spaces:
Runtime error
Runtime error
PierreHanna
commited on
Commit
•
4176bf3
1
Parent(s):
92791f8
Update app.py
Browse files
app.py
CHANGED
@@ -124,9 +124,9 @@ def process(file_name, embed_html_all):
|
|
124 |
# => global
|
125 |
|
126 |
timestart = time.time()
|
127 |
-
|
128 |
print("search time :", time.time() - timestart)
|
129 |
-
|
130 |
tops = get_topN(I, ind_filenames, url_dict, catalog, max_results)
|
131 |
formated = [{"f": "Choose a result to play", "t": ""}]
|
132 |
output_csv = f"{file_name}_results.csv"
|
|
|
124 |
# => global
|
125 |
|
126 |
timestart = time.time()
|
127 |
+
D, I = do_search(emb, ind)
|
128 |
print("search time :", time.time() - timestart)
|
129 |
+
print("DEBUG DISTANCES : ", D)
|
130 |
tops = get_topN(I, ind_filenames, url_dict, catalog, max_results)
|
131 |
formated = [{"f": "Choose a result to play", "t": ""}]
|
132 |
output_csv = f"{file_name}_results.csv"
|