Because you are using Torch and I assume a fairly large model, what is likely happening is that you are running out of RAM. This will crash the container the app is running in, and the browser will try to connect to the healthz endpoint but not get a response.
There isn’t a great solution right now, as we try and understand users usage patterns on Streamlit sharing during this beta period. It’s likely the case that your app needs 2-4x the resources we allocate, and maybe even more. That’s hard for us to sustain as a free service, but we’re trying to figure out ways to make this use case work in a cost-effective manner for us.