CindyBSydney
commited on
Commit
•
742f6ff
1
Parent(s):
d6c3c84
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def classify_image(uploaded_image):
|
|
50 |
input_image = data_transforms(image).unsqueeze(0).to(device)
|
51 |
|
52 |
# Anomaly detection
|
53 |
-
if is_anomaly(clf, feature_extractor):
|
54 |
return "Anomaly detected. Image will not be classified.", None
|
55 |
|
56 |
# Classification
|
|
|
50 |
input_image = data_transforms(image).unsqueeze(0).to(device)
|
51 |
|
52 |
# Anomaly detection
|
53 |
+
if is_anomaly(clf, feature_extractor, input_image):
|
54 |
return "Anomaly detected. Image will not be classified.", None
|
55 |
|
56 |
# Classification
|