Spaces:
Runtime error
Runtime error
Commit ·
45ca24a
1
Parent(s): 228caa0
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ def classify_food_vs_nonfood(image):
|
|
| 9 |
try:
|
| 10 |
# Preprocess image
|
| 11 |
#image_size = (224, 224)
|
| 12 |
-
image_np = np.array(image.resize(224, 224)) / 255.0
|
| 13 |
#image_np = np.array(image) / 255.0
|
| 14 |
image_np_expanded = np.expand_dims(image_np, axis=0)
|
| 15 |
|
|
|
|
| 9 |
try:
|
| 10 |
# Preprocess image
|
| 11 |
#image_size = (224, 224)
|
| 12 |
+
image_np = np.array(image.resize((224, 224))) / 255.0
|
| 13 |
#image_np = np.array(image) / 255.0
|
| 14 |
image_np_expanded = np.expand_dims(image_np, axis=0)
|
| 15 |
|