Hi all, having a bit of trouble with my app. I didn’t have any issues deploying the app but when it attempts to run an uploaded image through the tensorflow model I get the following error:
[manager] Error checking Streamlit healthz: Get “http://localhost:8501/healthz”: dial tcp 127.0.0.1:8501: connect: connection refused
The model is 396MB so it should not exceed the 800MB limit. It doesn’t throw any errors when run on localhost.
Any guidance would be greatly appreciated. Other than this I really really love how smooth and user friendly the platform is. Streamlit sharing is absolutely stunning.
I cloned your repo and deployed as well and it worked fine…does the issue happen after first picture load, or does it take a while to get into the error state?
A healthz error usually means that the container crashed, which seems to happen a bit with Torch/Tensorflow/Keras due to RAM usage. But hard to say without digging in further.
Hi @randyzwitch, thanks for looking into this. The issue comes up after uploading the picture, when you click the ‘Make a prediction’ button. That’s when the app tries to run the image through the tensorflow model. What is the cap on RAM usage for Streamlit Share?
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.