rakyann commited on
Commit
fa38fbd
·
verified ·
1 Parent(s): 8a28464

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -79,7 +79,7 @@ def predict():
79
  all_p2.sort(key=lambda x: x['confidence'], reverse=True)
80
 
81
  is_outlier = False
82
- if conf_1.item() < 0.35 and conf_2.item() < 0.35:
83
  is_outlier = True
84
 
85
  return jsonify({
 
79
  all_p2.sort(key=lambda x: x['confidence'], reverse=True)
80
 
81
  is_outlier = False
82
+ if conf_1.item() < 0.94 or conf_2.item() < 0.94:
83
  is_outlier = True
84
 
85
  return jsonify({