NoaiGPT commited on
Commit
5bf105d
·
1 Parent(s): 11dd2df
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -255,8 +255,9 @@ def humanize_text(AI_text):
255
  # Check if the humanized text is still detected as AI
256
  prediction = get_prediction(humanized_text)
257
  print(prediction)
 
258
 
259
- if prediction['label'] == 'human' and prediction['score'] > 0.7:
260
  break
261
 
262
  attempts += 1
 
255
  # Check if the humanized text is still detected as AI
256
  prediction = get_prediction(humanized_text)
257
  print(prediction)
258
+
259
 
260
+ if prediction['label'] == 'human-produced' and prediction['score'] > 0.8:
261
  break
262
 
263
  attempts += 1