Commit
·
776d363
1
Parent(s):
bc9a77e
path
Browse files
app.py
CHANGED
|
@@ -56,7 +56,7 @@ def predict_disease(image):
|
|
| 56 |
Predict plant disease from uploaded image using same preprocessing as your working cv2 method
|
| 57 |
"""
|
| 58 |
try:
|
| 59 |
-
temp_path = "temp_leaf.jpg"
|
| 60 |
image.save(temp_path)
|
| 61 |
|
| 62 |
img = cv2.imread(temp_path)
|
|
|
|
| 56 |
Predict plant disease from uploaded image using same preprocessing as your working cv2 method
|
| 57 |
"""
|
| 58 |
try:
|
| 59 |
+
temp_path = "disease_predict_hugging_face/temp_leaf.jpg"
|
| 60 |
image.save(temp_path)
|
| 61 |
|
| 62 |
img = cv2.imread(temp_path)
|