Spaces:
Build error
Build error
Update app.py
Browse files561 unmodified lines562563564565566567568569570571572573574575576577565566567568569570571572573574575576577578579580561 unmodified lines match = re.search(email_pattern, user_question) if match: user_email = match.group() # Return the matched email print("user_email") print(user_email) # email send if user_email: # Send email with the chart image attached send_email_with_attachment( recipient_email=user_email, subject="Warehouse Inventory Report", body=response.get("output", "").split(":")[0], image_data = img_str # attachment_path=chart_path #attachment_path=os.getenv("IMAGE_PATH") ) print("user_email") print(user_email) # email send if user_email: # Send email with the chart image attached send_email_with_attachment( recipient_email=user_email, subject="Warehouse Inventory Report", body=response.get("output", "").split(":")[0], image_data = img_str # attachment_path=chart_path #attachment_path=os.getenv("IMAGE_PATH") )
if "send email to" in user_question: try:app.py+13-13