Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ model = load_learner("model.pkl")
|
|
| 11 |
# Define an image classification function
|
| 12 |
def classify_image(image):
|
| 13 |
# Preprocess the image
|
| 14 |
-
image = Image.
|
| 15 |
|
| 16 |
# Make a prediction
|
| 17 |
prediction = model.predict(image)[0]
|
|
|
|
| 11 |
# Define an image classification function
|
| 12 |
def classify_image(image):
|
| 13 |
# Preprocess the image
|
| 14 |
+
image = Image.open(image).resize((192, 192))
|
| 15 |
|
| 16 |
# Make a prediction
|
| 17 |
prediction = model.predict(image)[0]
|