My app works locally, but in deployment I'm getting: The service has encountered an error while checking the health of the Streamlit app: Get "http://localhost:8501/healthz": read tcp> read: connection reset by peer

Here is my repo: GitHub - denizezgikurt/huggingchain-imageteller

And here is my app:

It also can be related to requirements.txt file, also can be found in the repo.

Help would be much appreaciated! Thanks a lot

Hey @denizezgikurt,

Thanks for sharing your question! It looks like your app has spiked up ~3GB of memory usage over the past few days, which is causing it to display the error you mentioned. Apps on Streamlit Community Cloud are limited to 1GB.

There are a few options – you can use Streamlit’s caching methods to make your app more efficient/decrease memory usage. If your app is for an educational or nonprofit use case, you can reach out to Streamlit’s support team by following the steps outlined here and they can work with you to increase your resource limit. Finally, you can also deploy Streamlit apps on a number of other platforms that may allow you to purchase additional resources.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.