Connection timeout error on Heroku

I am getting this error:
Connection failed with status 503, and response " Application Error html,body,iframe { margin: 0; padding: 0; } html,body { height: 100%; overflow: hidden; } iframe { width: 100%; height: 100%; border: 0; } ".

The streamlit app works fine for a few seconds but then suddenly I get the above error and when I try to open it again the app gets crashed giving H10 Error.

Has anyone got a solution to this? Please help, Thanks in advance!!!

Hi @Pratheeksha, welcome to the Streamlit community!

Errors like these are almost always due to a problem in the configuration file. Can you post the code you are using?

Best,
Randy

Yes, this is the code @randyzwitch