Spaces:
Build error
Build error
Update app.py
Browse files570 unmodified lines5715725735745755765775785791 unmodified line581582583584585586570 unmodified lines# email sendif len(user_email)>0:# Send email with the chart image attachedsend_email_with_attachment(recipient_email=user_email,subject="Warehouse Inventory Report",body=response.get("output", "").split(":")[0],1 unmodified lineattachment_path=os.getenv("IMAGE_PATH"))if "send email to" in user_question:try:os.remove(img) # Clean up the temporary image file570 unmodified lines5715725735745755765775785795801 unmodified line582583584585586587588589590570 unmodified lines# email sendif len(user_email)>0:import asyncio# Send email with the chart image attachedcoro=send_email_with_attachment(recipient_email=user_email,subject="Warehouse Inventory Report",body=response.get("output", "").split(":")[0],1 unmodified lineattachment_path=os.getenv("IMAGE_PATH"))asyncio.run(coro)if "send email to" in user_question:try:os.remove(img) # Clean up the temporary image file
app.py+6-2