Spaces:
Runtime error
Runtime error
Commit
·
912f7ec
1
Parent(s):
e5488a3
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ st.set_page_config(page_title="Image Classifier App", layout="wide")
|
|
| 25 |
|
| 26 |
# Function to preprocess the input image
|
| 27 |
def preprocess_image(image):
|
| 28 |
-
image =
|
| 29 |
image = img_to_array(image)
|
| 30 |
image = image.reshape((1, image.shape[0], image.shape[1], image.shape[2]))
|
| 31 |
image = preprocess_input(image)
|
|
|
|
| 25 |
|
| 26 |
# Function to preprocess the input image
|
| 27 |
def preprocess_image(image):
|
| 28 |
+
image = image.resize((224, 224))
|
| 29 |
image = img_to_array(image)
|
| 30 |
image = image.reshape((1, image.shape[0], image.shape[1], image.shape[2]))
|
| 31 |
image = preprocess_input(image)
|