aakash0017 commited on
Commit
8efa67d
·
1 Parent(s): 1afdb0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -256,12 +256,12 @@ def all_funcs(openai_key, zip_path, yolo_weights, email, pr = gr.Progress(track_
256
  em.set_content(body)
257
 
258
  # Add SSL (layer of security)
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
 
266
  print("ALL FUNC Executed without errors")
267
 
 
256
  em.set_content(body)
257
 
258
  # Add SSL (layer of security)
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
 
266
  print("ALL FUNC Executed without errors")
267