Keep getting The service has encountered an error while checking the health of the Streamlit app: Get "http://localhost:8501/healthz": dial tcp 10.12.94.241:8501: connect: connection refused

Python version (3.11)
Streamlit version (1.25)
Deployment
Error message: The service has encountered an error while checking the health of the Streamlit app: Get “http://localhost:8501/healthz”: dial tcp 10.12.94.241:8501: connect: connection refused

This happens when trying to deploy it, and it’s able to work locally. I can’t post the repo here since it’s private for now. Let me know if I should share my code anyways with something like pastebin.

Here’s my pipfile:

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
streamlit = "*"
watchdog = "==2.3.1"
openai = "==0.27.0"
python-decouple = "==3.8"
altair = "<5"
certifi = ">=14.05.14"
six = ">=1.10"
python-dateutil = ">=2.5.3"
urllib3 = ">=1.15.1"
firebase-admin = "*"

[dev-packages]

[requires]
python_version = "3.11"

Hi @BustosAndrew ,

Thanks for posting! It looks like your app may be exceeding the 1GB resource limit on Community Cloud. Check out this blog post for some suggestions on reducing your app’s memory usage.