Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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, (
|
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)
|