Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -169,7 +169,7 @@ crop_disease_dict = {
|
|
169 |
"Bacterial Spot", "Powdery Mildew", "Phytophthora Blight", "Blossom End Rot",
|
170 |
"Pepper Weevil", "Fusarium Wilt", "Downy
|
171 |
|
172 |
-
|
173 |
def preprocess_image(image, image_size=(224, 224)):
|
174 |
# Convert image to grayscale
|
175 |
image = np.array(image.convert('L'))
|
|
|
169 |
"Bacterial Spot", "Powdery Mildew", "Phytophthora Blight", "Blossom End Rot",
|
170 |
"Pepper Weevil", "Fusarium Wilt", "Downy
|
171 |
|
172 |
+
]
|
173 |
def preprocess_image(image, image_size=(224, 224)):
|
174 |
# Convert image to grayscale
|
175 |
image = np.array(image.convert('L'))
|