Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ import cv2
|
|
| 11 |
def image_predict(img_):
|
| 12 |
model = load_model('efficientnet_b0.keras')
|
| 13 |
# img = cv2.cvtColor(img_, cv2.COLOR_BGR2RGB)
|
| 14 |
-
img = cv2.resize(
|
| 15 |
img = img / 255.0
|
| 16 |
img = np.expand_dims(img, axis = 0)
|
| 17 |
|
|
|
|
| 11 |
def image_predict(img_):
|
| 12 |
model = load_model('efficientnet_b0.keras')
|
| 13 |
# img = cv2.cvtColor(img_, cv2.COLOR_BGR2RGB)
|
| 14 |
+
img = cv2.resize(img_, dsize = [224, 224])
|
| 15 |
img = img / 255.0
|
| 16 |
img = np.expand_dims(img, axis = 0)
|
| 17 |
|