Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -563,9 +563,10 @@ 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
|
570 |
send_email_with_attachment(
|
571 |
recipient_email=user_email,
|
|
|
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 len(user_email)>0:
|
569 |
+
print("user_email")
|
570 |
# Send email with the chart image attached
|
571 |
send_email_with_attachment(
|
572 |
recipient_email=user_email,
|