yasserrmd commited on
Commit
75f1c2d
·
verified ·
1 Parent(s): 86eceff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ def check_plagiarism(text):
68
  token_text = tokenizer.decode(token_id.unsqueeze(0))
69
 
70
  # Convert g_val to float and highlight if it meets the threshold
71
- if mask.item() and g_val.float().mean().item() > 0.6:
72
  highlighted_text += f"<mark>{token_text}</mark>" # Highlight watermarked content
73
  else:
74
  highlighted_text += token_text
 
68
  token_text = tokenizer.decode(token_id.unsqueeze(0))
69
 
70
  # Convert g_val to float and highlight if it meets the threshold
71
+ if mask.item() and g_val.float().mean().item() > 0.55:
72
  highlighted_text += f"<mark>{token_text}</mark>" # Highlight watermarked content
73
  else:
74
  highlighted_text += token_text