aje6 commited on
Commit
8b87f22
·
verified ·
1 Parent(s): e7b0b5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -245,7 +245,7 @@ def predict(image):
245
  input_shape = model.get_inputs()[0].shape
246
 
247
  # Resize the image to the model's input shape
248
- image = cv2.resize(image, (input_shape[2], input_shape[3]))
249
 
250
  # Convert the image to a numpy array and add a batch dimension
251
  image = np.expand_dims(image, axis=0)
 
245
  input_shape = model.get_inputs()[0].shape
246
 
247
  # Resize the image to the model's input shape
248
+ image = cv2.resize(image, (640, 640))
249
 
250
  # Convert the image to a numpy array and add a batch dimension
251
  image = np.expand_dims(image, axis=0)