Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -63,15 +63,13 @@ def whatsapp_webhook():
|
|
63 |
bookdata=booktask(bd)
|
64 |
response_text="Your report for bookkeeping saved successfully."
|
65 |
elif 'none' not in filepath:
|
66 |
-
if
|
|
|
|
|
67 |
|
68 |
-
try:
|
69 |
-
response_text = predict_disease(filepath)
|
70 |
-
except:
|
71 |
-
response_text=predict_pest(filepath)
|
72 |
|
73 |
-
elif
|
74 |
-
response_text=
|
75 |
else:
|
76 |
response_text = "Please upload other image with good quality."
|
77 |
else:
|
|
|
63 |
bookdata=booktask(bd)
|
64 |
response_text="Your report for bookkeeping saved successfully."
|
65 |
elif 'none' not in filepath:
|
66 |
+
if predict_pest(filepath):
|
67 |
+
|
68 |
+
response_text = predict_pest(filepath)
|
69 |
|
|
|
|
|
|
|
|
|
70 |
|
71 |
+
elif predict_disease(filepath):
|
72 |
+
response_text=predict_disease(filepath)
|
73 |
else:
|
74 |
response_text = "Please upload other image with good quality."
|
75 |
else:
|