Class runs upon starting of the streamlit app

When the app is initialized, the message appears “Python dependencies were installed from …” as well as the other message of “Processed dependencies!”. However, right after those messages, it starts running a class that is imported at the beginning of the file. This is seen in the console as the logs for that class show up. I’ve tried wrapping the class in a if __ name __ == “__ main __”, but it doesn’t seem to stop the execution. Is there any way to avoid this behavior ?
Screenshot 2022-09-23 at 12.30.58

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.