Spaces:
Sleeping
Sleeping
mandali8686
commited on
Commit
•
4e96e31
1
Parent(s):
3abf34c
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ model = load_model()
|
|
21 |
def transform_image(image, size=(224, 224)):
|
22 |
transform = transforms.Compose([
|
23 |
transforms.Resize(size),
|
24 |
-
transforms.CenterCrop(size),
|
25 |
transforms.ToTensor(),
|
26 |
# Add other transformations as needed, such as normalization
|
27 |
])
|
|
|
21 |
def transform_image(image, size=(224, 224)):
|
22 |
transform = transforms.Compose([
|
23 |
transforms.Resize(size),
|
24 |
+
transforms.CenterCrop(size),
|
25 |
transforms.ToTensor(),
|
26 |
# Add other transformations as needed, such as normalization
|
27 |
])
|