Update app.py
Browse files
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.
|
| 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({
|