Neurolingua commited on
Commit
f76692c
1 Parent(s): 3a352e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -55,10 +55,9 @@ def whatsapp_webhook():
55
 
56
  if content_type.startswith('image/'):
57
  # Handle image processing (disease/pest detection)
58
- try:
59
  filepath = convert_img(media_url, account_sid, auth_token)
60
- except:
61
- response_text="Error in uploading image,try with another one."
62
  bd=extract_text_from_image(filepath)
63
  if bd!='':
64
  bookdata=booktask(bd)
 
55
 
56
  if content_type.startswith('image/'):
57
  # Handle image processing (disease/pest detection)
58
+ if 1==1:
59
  filepath = convert_img(media_url, account_sid, auth_token)
60
+
 
61
  bd=extract_text_from_image(filepath)
62
  if bd!='':
63
  bookdata=booktask(bd)