Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ num_classes = 3
|
|
22 |
CONFIDENCE_THRESHOLD = 0.8 # 80%
|
23 |
|
24 |
# Mahalanobis distance threshold for OOD detection
|
25 |
-
MAHALANOBIS_THRESHOLD =
|
26 |
|
27 |
# Download model from Hugging Face
|
28 |
def download_model():
|
|
|
22 |
CONFIDENCE_THRESHOLD = 0.8 # 80%
|
23 |
|
24 |
# Mahalanobis distance threshold for OOD detection
|
25 |
+
MAHALANOBIS_THRESHOLD = 400.0 # Calibrate this using a validation set
|
26 |
|
27 |
# Download model from Hugging Face
|
28 |
def download_model():
|