Update api/predict.py
Browse files- api/predict.py +1 -1
api/predict.py
CHANGED
|
@@ -106,7 +106,7 @@ def predict_review(text):
|
|
| 106 |
confidence = max(fakeProb, realProb)
|
| 107 |
prediction = "fake" if isFake else "real"
|
| 108 |
|
| 109 |
-
if confidence < 0.
|
| 110 |
prediction = "uncertain"
|
| 111 |
|
| 112 |
lengthCat = getLengthCategory(cleaned)
|
|
|
|
| 106 |
confidence = max(fakeProb, realProb)
|
| 107 |
prediction = "fake" if isFake else "real"
|
| 108 |
|
| 109 |
+
if confidence < 0.6:
|
| 110 |
prediction = "uncertain"
|
| 111 |
|
| 112 |
lengthCat = getLengthCategory(cleaned)
|