Spaces:
Running
Running
danielhajialigol
commited on
Commit
·
acc1c3e
1
Parent(s):
2690a96
accounting for duplicate realated summaries
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ def find_related_summaries(text):
|
|
92 |
if len(summary_score_list) == 5:
|
93 |
break
|
94 |
corresp_summary = all_summaries[summary_idx]
|
95 |
-
if score in score_set:
|
96 |
continue
|
97 |
summary_score_list.append(
|
98 |
[round(score,2), corresp_summary])
|
|
|
92 |
if len(summary_score_list) == 5:
|
93 |
break
|
94 |
corresp_summary = all_summaries[summary_idx]
|
95 |
+
if score in score_set or score >= 99: # potential duplicate
|
96 |
continue
|
97 |
summary_score_list.append(
|
98 |
[round(score,2), corresp_summary])
|