Mattral commited on
Commit
8d04a78
·
verified ·
1 Parent(s): 49218d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -93,7 +93,7 @@ def find_similar_texts(df1, df2, column_name, threshold=0.3):
93
  if similarity_score >= threshold:
94
  if similarity == 1: # Exact match
95
  exact_matches.append((i, j, row1[column_name], row2[column_name]))
96
- elif similarity < 0.97: # Similar but not the same
97
  similar_texts.append((i, j, row1[column_name], row2[column_name]))
98
 
99
  return similar_texts, exact_matches
 
93
  if similarity_score >= threshold:
94
  if similarity == 1: # Exact match
95
  exact_matches.append((i, j, row1[column_name], row2[column_name]))
96
+ elif similarity < 0.99: # Similar but not the same
97
  similar_texts.append((i, j, row1[column_name], row2[column_name]))
98
 
99
  return similar_texts, exact_matches