Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -282,10 +282,10 @@ def reranking():
|
|
282 |
remove_dup = []
|
283 |
rerank_list = search_nolog(query = user_query)
|
284 |
unique_list = list(set(rerank_list))
|
285 |
-
|
286 |
-
|
287 |
|
288 |
-
for i in
|
289 |
clean_string = i.strip()
|
290 |
if clean_string not in remove_dup:
|
291 |
remove_dup.append(clean_string)
|
|
|
282 |
remove_dup = []
|
283 |
rerank_list = search_nolog(query = user_query)
|
284 |
unique_list = list(set(rerank_list))
|
285 |
+
Lowercasing_list = [item.lower() for item in unique_list]
|
286 |
+
new_unique_list = [item for item in Lowercasing_list if item != user_query]
|
287 |
|
288 |
+
for i in new_unique_list:
|
289 |
clean_string = i.strip()
|
290 |
if clean_string not in remove_dup:
|
291 |
remove_dup.append(clean_string)
|