Redmind commited on
Commit
6c90dc6
·
verified ·
1 Parent(s): b2c97f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -249,10 +249,10 @@ def document_data_tool(question):
249
 
250
  def send_email_with_attachment(recipient_email, subject, body, image_data):
251
  try:
252
- #print(recipient_email)
253
- #print(subject)
254
- #print(body)
255
- #print(image_data)
256
  sender_email = os.getenv("EMAIL_SENDER")
257
  sender_password = os.getenv("EMAIL_PASSWORD")
258
 
@@ -563,7 +563,7 @@ def answer_question(user_question, chatbot, audio=None):
563
  if match:
564
  user_email = match.group() # Return the matched email
565
  #print("user_email")
566
- #print(user_email)
567
  # email send
568
  if user_email:
569
  # Send email with the chart image attached
 
249
 
250
  def send_email_with_attachment(recipient_email, subject, body, image_data):
251
  try:
252
+ print(recipient_email)
253
+ print(subject)
254
+ print(body)
255
+ print(image_data)
256
  sender_email = os.getenv("EMAIL_SENDER")
257
  sender_password = os.getenv("EMAIL_PASSWORD")
258
 
 
563
  if match:
564
  user_email = match.group() # Return the matched email
565
  #print("user_email")
566
+ print(user_email)
567
  # email send
568
  if user_email:
569
  # Send email with the chart image attached