Neurolingua commited on
Commit
dd42eb1
1 Parent(s): 8c242c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -9,15 +9,13 @@ from requests.auth import HTTPBasicAuth
9
 
10
 
11
  app = Flask(__name__)
12
- UPLOAD_FOLDER = '/code/uploads'
13
- if not os.path.exists(UPLOAD_FOLDER):
14
- os.makedirs(UPLOAD_FOLDER)
15
 
16
 
17
- account_sid = os.environ.get('TWILIO_ACCOUNT_SID')
18
- auth_token = os.environ.get('TWILIO_AUTH_TOKEN')
 
19
  client= Client(account_sid, auth_token)
20
- from_whatsapp_number = 'whatsapp:+14155238886'
21
 
22
  PROMPT_TEMPLATE = """
23
  Answer the question based only on the following context:
@@ -133,7 +131,7 @@ def send_message(recipient, message):
133
  client.messages.create(
134
  body=message,
135
  from_=from_whatsapp_number,
136
- to=recipient
137
  )
138
  def send_initial_message(to_number):
139
  send_message(
 
9
 
10
 
11
  app = Flask(__name__)
 
 
 
12
 
13
 
14
+
15
+ account_sid = 'AC7f8c344c6593572a0c925ab4c1b66cc6'
16
+ auth_token ='01a62fe8d92f27552632527b6513bd4a'
17
  client= Client(account_sid, auth_token)
18
+ from_whatsapp_number = 'whatsapp:+15674060593'
19
 
20
  PROMPT_TEMPLATE = """
21
  Answer the question based only on the following context:
 
131
  client.messages.create(
132
  body=message,
133
  from_=from_whatsapp_number,
134
+ to='whatsapp:+919342540825'
135
  )
136
  def send_initial_message(to_number):
137
  send_message(