MAS-AI-0000 commited on
Commit
387e9f1
·
verified ·
1 Parent(s): 677a506

Update textPreprocess.py

Browse files
Files changed (1) hide show
  1. textPreprocess.py +2 -2
textPreprocess.py CHANGED
@@ -166,8 +166,8 @@ def predict_batch(texts, batch_size=16):
166
  print(f"Error during batch prediction: {e}")
167
  return [{
168
  "predicted_class": "Human",
169
- "confidence_ai": 0.0,
170
- "confidence_human": 0.0
171
  } for _ in texts]
172
  finally:
173
  detector.batch_size = original_batch_size
 
166
  print(f"Error during batch prediction: {e}")
167
  return [{
168
  "predicted_class": "Human",
169
+ "confidence_ai": -100.0,
170
+ "confidence_human": -100.0
171
  } for _ in texts]
172
  finally:
173
  detector.batch_size = original_batch_size