Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
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 |
-
|
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
|