How to do some prepare when app start

I have an app that needs some preparation/clean work, like dataset build and app status report.

streamlit can only run app with ‘run’ command, how can I execute functions when the app starts or stop?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.