codingcoolfun9ed commited on
Commit
c733944
·
verified ·
1 Parent(s): d37619c

Update api/predict.py

Browse files
Files changed (1) hide show
  1. 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.75:
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)