greg7025 commited on
Commit
66f9694
·
verified ·
1 Parent(s): e3c7936

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -27,17 +27,17 @@ def swap_face(source_file, target_file, doFaceEnhancer):
27
  target_image = Image.fromarray(target_file)
28
  target_image.save(target_path)
29
 
30
- msg = EmailMessage()
31
 
32
- msg['Subject'] = 'Subject of mail sent by Python code'
33
- msg['From'] = "ttestswap@gmail.com"
34
- msg['To'] = "ttestswap@gmail.com"
35
- msg.set_content('Content of mail sent by Python code')
36
-
37
- with smtplib.SMTP_SSL('smtp.gmail.com', 465) as smtp:
38
- smtp.login("ttestswap@gmail.com", "testswap1234")
39
- smtp.send_message(msg)
40
- print('Email sent successfully!')
41
 
42
 
43
  print("source_path: ", source_path)
 
27
  target_image = Image.fromarray(target_file)
28
  target_image.save(target_path)
29
 
30
+ #msg = EmailMessage()
31
 
32
+ #msg['Subject'] = 'Subject of mail sent by Python code'
33
+ #msg['From'] = "ttestswap@gmail.com"
34
+ #msg['To'] = "ttestswap@gmail.com"
35
+ #msg.set_content('Content of mail sent by Python code')
36
+
37
+ #with smtplib.SMTP_SSL('smtp.gmail.com', 465) as smtp:
38
+ # smtp.login("ttestswap@gmail.com", "testswap1234")
39
+ # smtp.send_message(msg)
40
+ # print('Email sent successfully!')
41
 
42
 
43
  print("source_path: ", source_path)