hsienchen commited on
Commit
b34adbe
1 Parent(s): 1fe660b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -31,6 +31,8 @@ txt_display_1 = 'content of the letter: '
31
  import os
32
  GOOGLE_API_KEY=os.getenv('GOOGLE_API_KEY')
33
  genai.configure(api_key=GOOGLE_API_KEY)
 
 
34
 
35
  sms_text ="..."
36
  # Image to Base 64 Converter
@@ -58,10 +60,10 @@ def app1_response(img):
58
  response = vis_model.generate_content([txt_prompt_1,img])
59
  return response.text
60
 
61
- def send_SMS(resp_text)
62
- url = "https://sms.api.sinch.com/xms/v1/b3af1b4a38cd47708c26c9d940492748/batches"
63
  headers = {
64
- "Authorization": "Bearer 43eb78f13b6f4ec784d6a94439958d30",
65
  "Content-Type": "application/json"
66
  }
67
 
 
31
  import os
32
  GOOGLE_API_KEY=os.getenv('GOOGLE_API_KEY')
33
  genai.configure(api_key=GOOGLE_API_KEY)
34
+ SMS_URL =os.getenv('SMS_URL')
35
+ SMS_TOK =os.getenv('SMS_TOK')
36
 
37
  sms_text ="..."
38
  # Image to Base 64 Converter
 
60
  response = vis_model.generate_content([txt_prompt_1,img])
61
  return response.text
62
 
63
+ def send_SMS(resp_text):
64
+ url = SMS_URL
65
  headers = {
66
+ "Authorization": SMS_TOK,
67
  "Content-Type": "application/json"
68
  }
69