mandali8686 commited on
Commit
4e96e31
1 Parent(s): 3abf34c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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), # Ensures image is square
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
  ])