Spaces:
Sleeping
Sleeping
Commit
·
1afdb0c
1
Parent(s):
4d053b9
Update app.py
Browse files
app.py
CHANGED
@@ -259,7 +259,7 @@ def all_funcs(openai_key, zip_path, yolo_weights, email, pr = gr.Progress(track_
|
|
259 |
context = ssl.create_default_context()
|
260 |
|
261 |
# Log in and send the email
|
262 |
-
with smtplib.SMTP_SSL('smtp.gmail.com',
|
263 |
smtp.login(email_sender, email_password)
|
264 |
smtp.sendmail(email_sender, email_receiver, em.as_string())
|
265 |
|
|
|
259 |
context = ssl.create_default_context()
|
260 |
|
261 |
# Log in and send the email
|
262 |
+
with smtplib.SMTP_SSL('smtp.gmail.com', 1024, context=context) as smtp:
|
263 |
smtp.login(email_sender, email_password)
|
264 |
smtp.sendmail(email_sender, email_receiver, em.as_string())
|
265 |
|