Class runs upon starting of the streamlit app

Hi @Eric-WK, welcome to the forum! Would you be able to post a minimal code snippet that shows the issue? You can see our recent post about guidelines for asking questions on the forum for more details about how to best get help on the forum.