Spaces:
Sleeping
Sleeping
Neurolingua
commited on
Commit
•
caeda3a
1
Parent(s):
65a48f9
Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,17 @@ def whatsapp_webhook():
|
|
60 |
response_text = "Please upload another image with good quality."
|
61 |
|
62 |
else:
|
63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
elif ('weather' in incoming_msg.lower()) or ('climate' in incoming_msg.lower()) or ('temperature' in incoming_msg.lower()):
|
65 |
response_text=get_weather(incoming_msg.lower())
|
66 |
elif 'bookkeeping' in incoming_msg:
|
|
|
60 |
response_text = "Please upload another image with good quality."
|
61 |
|
62 |
else:
|
63 |
+
filepath = download_and_save_as_txt(media_url, account_sid, auth_token)
|
64 |
+
#Rag code is as follows.Provide filepath inplace of pdf..
|
65 |
+
|
66 |
+
|
67 |
+
|
68 |
+
|
69 |
+
|
70 |
+
|
71 |
+
|
72 |
+
|
73 |
+
|
74 |
elif ('weather' in incoming_msg.lower()) or ('climate' in incoming_msg.lower()) or ('temperature' in incoming_msg.lower()):
|
75 |
response_text=get_weather(incoming_msg.lower())
|
76 |
elif 'bookkeeping' in incoming_msg:
|