Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -54,12 +54,12 @@ CLASS_NAMES = ["Normal", "Early Glaucoma", "Advanced Glaucoma"]
|
|
54 |
|
55 |
# ✅ Transformation for input images
|
56 |
transform = transforms.Compose([
|
57 |
-
transforms.Resize(
|
|
|
58 |
transforms.ToTensor(),
|
59 |
-
transforms.Normalize(mean=[0.485, 0.456, 0.406],
|
60 |
-
std=[0.229, 0.224, 0.225])
|
61 |
])
|
62 |
-
|
63 |
@app.route('/')
|
64 |
def home():
|
65 |
"""Check that the API is working."""
|
|
|
54 |
|
55 |
# ✅ Transformation for input images
|
56 |
transform = transforms.Compose([
|
57 |
+
transforms.Resize(256),
|
58 |
+
transforms.CenterCrop(224),
|
59 |
transforms.ToTensor(),
|
60 |
+
transforms.Normalize(mean=[0.485, 0.456, 0.406],
|
61 |
+
std=[0.229, 0.224, 0.225]),
|
62 |
])
|
|
|
63 |
@app.route('/')
|
64 |
def home():
|
65 |
"""Check that the API is working."""
|