berkaygkv54 commited on
Commit
db1ac47
1 Parent(s): f231429

submit playlist

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,12 +37,12 @@ def load_model():
37
 
38
 
39
  def send_curator(text):
40
- port = 1025
 
41
  smtp_server = "smtp.gmail.com"
42
  sender_email = os.getenv("EMAIL_ADDRESS")
43
  receiver_email = os.getenv("EMAIL_RECEIVER")
44
  password = os.getenv("EMAIL_PASSWORD")
45
- print(text)
46
  context = ssl.create_default_context()
47
  with smtplib.SMTP_SSL(smtp_server, port, context=context) as server:
48
  server.login(sender_email, password)
 
37
 
38
 
39
  def send_curator(text):
40
+ port = int(os.getenv("PORT"))
41
+ print(port)
42
  smtp_server = "smtp.gmail.com"
43
  sender_email = os.getenv("EMAIL_ADDRESS")
44
  receiver_email = os.getenv("EMAIL_RECEIVER")
45
  password = os.getenv("EMAIL_PASSWORD")
 
46
  context = ssl.create_default_context()
47
  with smtplib.SMTP_SSL(smtp_server, port, context=context) as server:
48
  server.login(sender_email, password)