NoaiGPT commited on
Commit
962074d
·
1 Parent(s): c749f4d
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -176,7 +176,7 @@ def humanize_text(AI_text):
176
  # Check if the humanized text is still detected as AI
177
  prediction = get_prediction(humanized_text)
178
 
179
- if prediction['label'] != 'AI':
180
  break
181
 
182
  attempts += 1
 
176
  # Check if the humanized text is still detected as AI
177
  prediction = get_prediction(humanized_text)
178
 
179
+ if prediction['label'] == 'human' and prediction['score'] > 0.85:
180
  break
181
 
182
  attempts += 1