HarryLee commited on
Commit
487d029
·
1 Parent(s): 35a977f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- new_unique_list = [item for item in unique_list if item != user_query]
286
- Lowercasing_list = [item.lower() for item in new_unique_list]
287
 
288
- for i in Lowercasing_list:
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)