Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 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
|