Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def custom_decode_predictions(predictions, class_labels):
|
|
62 |
return decoded_predictions
|
63 |
|
64 |
def classify_image(img):
|
65 |
-
img = cv2.resize(img, (540,
|
66 |
img_array = img_to_array(img)
|
67 |
img_array = np.expand_dims(img_array, axis=0)
|
68 |
img_array = preprocess_input(img_array)
|
|
|
62 |
return decoded_predictions
|
63 |
|
64 |
def classify_image(img):
|
65 |
+
img = cv2.resize(img, (540, 540), interpolation=cv2.INTER_AREA)
|
66 |
img_array = img_to_array(img)
|
67 |
img_array = np.expand_dims(img_array, axis=0)
|
68 |
img_array = preprocess_input(img_array)
|