Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,7 +65,11 @@ def whatsapp_webhook():
|
|
| 65 |
elif 'none' not in filepath:
|
| 66 |
if predict_disease(filepath):
|
| 67 |
|
| 68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
elif predict_pest(filepath):
|
| 70 |
response_text=predict_pest(filepath)
|
| 71 |
else:
|
|
|
|
| 65 |
elif 'none' not in filepath:
|
| 66 |
if predict_disease(filepath):
|
| 67 |
|
| 68 |
+
try:
|
| 69 |
+
response_text = predict_disease(filepath)
|
| 70 |
+
except:
|
| 71 |
+
response_text=predict_pest(filepath)
|
| 72 |
+
|
| 73 |
elif predict_pest(filepath):
|
| 74 |
response_text=predict_pest(filepath)
|
| 75 |
else:
|