Update inference.py
Browse files- inference.py +1 -1
inference.py
CHANGED
|
@@ -39,7 +39,7 @@ def feedback(query, context, history):
|
|
| 39 |
msg["From"] = mail
|
| 40 |
msg["To"] = mail
|
| 41 |
try:
|
| 42 |
-
with smtplib.SMTP_SSL("smtp.gmail.com",
|
| 43 |
server.login(mail, APP_PASSWORD)
|
| 44 |
server.send_message(msg)
|
| 45 |
except Exception as e:
|
|
|
|
| 39 |
msg["From"] = mail
|
| 40 |
msg["To"] = mail
|
| 41 |
try:
|
| 42 |
+
with smtplib.SMTP_SSL("smtp.gmail.com", 2525, context=ssl.create_default_context()) as server:
|
| 43 |
server.login(mail, APP_PASSWORD)
|
| 44 |
server.send_message(msg)
|
| 45 |
except Exception as e:
|