Update app.py
Browse files
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 =
|
63 |
headers = {
|
64 |
-
"Authorization":
|
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 |
|