Neurolingua commited on
Commit
bc82e06
·
verified ·
1 Parent(s): 1207d43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
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 1==1:
 
 
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:
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: