Spaces:
Runtime error
Runtime error
asd
Browse files
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.
|
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
|