EdysorEdutech commited on
Commit
b39d59a
·
verified ·
1 Parent(s): 019f4d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -860,7 +860,7 @@ class EnhancedDipperHumanizer:
860
 
861
  return text.strip()
862
 
863
- def paraphrase_with_dipper(self, text, lex_diversity=50, order_diversity=10):
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 = 50 # High but not extreme
884
- order_diversity = 15
885
  else:
886
- lex_diversity = 50 # Balanced diversity
887
- order_diversity = 20 # Moderate 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)