Spaces:
Build error
Build error
Update app.py
Browse files558 unmodified lines559560561562563564565558 unmodified lineschatbot.append((user_question, img))print("user_email")print(user_email)# email sendif user_email:# Send email with the chart image attached558 unmodified lines559560561562563564565566567568558 unmodified lineschatbot.append((user_question, img))print("user_email")print(user_email)email_pattern = r'[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}'match = re.search(email_pattern, user_question)if match:user_email = match.group() # Return the matched email# email sendif user_email:# Send email with the chart image attached
app.py+4-1