Spaces:
Running
Running
Update textPreprocess.py
Browse files- 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":
|
| 170 |
-
"confidence_human":
|
| 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
|