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

Update api/predict.py

Browse files
Files changed (1) hide show
  1. api/predict.py +1 -1
api/predict.py CHANGED
@@ -102,7 +102,7 @@ def predict_review(text):
102
  fakeProb = avgProbs[1]
103
  realProb = avgProbs[0]
104
 
105
- isFake = fakeProb > 0.5
106
  confidence = max(fakeProb, realProb)
107
  prediction = "fake" if isFake else "real"
108
 
 
102
  fakeProb = avgProbs[1]
103
  realProb = avgProbs[0]
104
 
105
+ isFake = fakeProb > 0.6
106
  confidence = max(fakeProb, realProb)
107
  prediction = "fake" if isFake else "real"
108