Mattral commited on
Commit
359f66f
·
verified ·
1 Parent(s): 7c8856f

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.5):
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.9: # 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.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