Spaces:
Runtime error
Runtime error
Update app/main.py
Browse files- app/main.py +10 -0
app/main.py
CHANGED
@@ -64,6 +64,16 @@ vectordb = Chroma(persist_directory=persist_directory, embedding_function=embedd
|
|
64 |
#setup Twilio client
|
65 |
client = Client(account_sid, auth_token)
|
66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
|
68 |
from flask import Flask, request, redirect
|
69 |
from twilio.twiml.messaging_response import MessagingResponse
|
|
|
64 |
#setup Twilio client
|
65 |
client = Client(account_sid, auth_token)
|
66 |
|
67 |
+
# Find your Account SID and Auth Token at twilio.com/console
|
68 |
+
message = client.messages.create(
|
69 |
+
body='Hello there!',
|
70 |
+
from_='whatsapp:+14155238886',
|
71 |
+
to='whatsapp:+91-9108843322'
|
72 |
+
)
|
73 |
+
print("message :",message )
|
74 |
+
print("message.sid :",message.sid)
|
75 |
+
|
76 |
+
|
77 |
|
78 |
from flask import Flask, request, redirect
|
79 |
from twilio.twiml.messaging_response import MessagingResponse
|