Neurolingua commited on
Commit
1afebea
1 Parent(s): 595a477

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -56,7 +56,7 @@ def whatsapp_webhook():
56
  if content_type.startswith('image/'):
57
  # Handle image processing (disease/pest detection)
58
  filepath = convert_img(media_url, account_sid, auth_token)
59
- if 1==1:
60
  if predict_disease(filepath):
61
 
62
  response_text = predict_disease(filepath)
 
56
  if content_type.startswith('image/'):
57
  # Handle image processing (disease/pest detection)
58
  filepath = convert_img(media_url, account_sid, auth_token)
59
+ if 'none' not in filepath:
60
  if predict_disease(filepath):
61
 
62
  response_text = predict_disease(filepath)