trohith89 commited on
Commit
99947f0
·
verified ·
1 Parent(s): 88f40ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,8 +22,8 @@ def load_resources():
22
  # Preprocess the image
23
  def preprocess_image(image_path):
24
  img1 = cv2.imread(image_path)
25
- img1 = cv2.resize(img1, (64, 64)) # Resize to 64x64
26
- img1 = np.asarray(img1) # Shape: (64, 64, 3)
27
  img1 = img1[np.newaxis, :, :, :] # Shape: (1, 64, 64, 3)
28
  return img1
29
 
 
22
  # Preprocess the image
23
  def preprocess_image(image_path):
24
  img1 = cv2.imread(image_path)
25
+ img1 = cv2.resize(img1, (64, 64, 3)) # Resize to 64x64
26
+ # img1 = np.asarray(img1) # Shape: (64, 64, 3)
27
  img1 = img1[np.newaxis, :, :, :] # Shape: (1, 64, 64, 3)
28
  return img1
29