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