Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
59 |
filepath = convert_img(media_url, account_sid, auth_token)
|
60 |
-
|
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)
|