Neurolingua commited on
Commit
d6bcd10
1 Parent(s): dfe1176

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -65,7 +65,11 @@ def whatsapp_webhook():
65
  elif 'none' not in filepath:
66
  if predict_disease(filepath):
67
 
68
- response_text = predict_disease(filepath)
 
 
 
 
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: