Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -860,7 +860,7 @@ class EnhancedDipperHumanizer:
|
|
| 860 |
|
| 861 |
return text.strip()
|
| 862 |
|
| 863 |
-
def paraphrase_with_dipper(self, text, lex_diversity=
|
| 864 |
"""Paraphrase text using Dipper model with sentence-level processing"""
|
| 865 |
if not text or len(text.strip()) < 3:
|
| 866 |
return text
|
|
@@ -880,11 +880,11 @@ class EnhancedDipperHumanizer:
|
|
| 880 |
try:
|
| 881 |
# BALANCED diversity for Originality AI (100% human with better quality)
|
| 882 |
if len(sentence.split()) < 10:
|
| 883 |
-
lex_diversity =
|
| 884 |
-
order_diversity =
|
| 885 |
else:
|
| 886 |
-
lex_diversity =
|
| 887 |
-
order_diversity =
|
| 888 |
|
| 889 |
lex_code = int(100 - lex_diversity)
|
| 890 |
order_code = int(100 - order_diversity)
|
|
|
|
| 860 |
|
| 861 |
return text.strip()
|
| 862 |
|
| 863 |
+
def paraphrase_with_dipper(self, text, lex_diversity=60, order_diversity=20):
|
| 864 |
"""Paraphrase text using Dipper model with sentence-level processing"""
|
| 865 |
if not text or len(text.strip()) < 3:
|
| 866 |
return text
|
|
|
|
| 880 |
try:
|
| 881 |
# BALANCED diversity for Originality AI (100% human with better quality)
|
| 882 |
if len(sentence.split()) < 10:
|
| 883 |
+
lex_diversity = 70 # High but not extreme
|
| 884 |
+
order_diversity = 25
|
| 885 |
else:
|
| 886 |
+
lex_diversity = 82 # Balanced diversity
|
| 887 |
+
order_diversity = 30 # Moderate order diversity
|
| 888 |
|
| 889 |
lex_code = int(100 - lex_diversity)
|
| 890 |
order_code = int(100 - order_diversity)
|