kkhushisaid commited on
Commit
8acd459
·
verified ·
1 Parent(s): 16a92ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def predict(image):
16
  img = img.resize((280, 280)) # Adjusted the size to 280x280
17
 
18
  # Convert to numpy array and normalize the pixel values
19
- img_array = np.array(img).reshape(1, 280, 280, 1) / 255.0
20
 
21
  # Make prediction
22
  prediction = model.predict(img_array)
 
16
  img = img.resize((280, 280)) # Adjusted the size to 280x280
17
 
18
  # Convert to numpy array and normalize the pixel values
19
+ img_array = np.array(img).reshape(1, 280 * 280) / 255.0 # Flattened image to 78400
20
 
21
  # Make prediction
22
  prediction = model.predict(img_array)