App shuts down with error below "Oh no"

[16:43:06] :exclamation: The service has encountered an error while checking the health of the Streamlit app: Get “http://localhost:8501/healthz”: read tcp 127.0.0.1:56948->127.0.0.1:8501: read: connection reset by peer
Streamlit - v1.41.1
Python - v3.12


App link : https://stockaipro.streamlit.app/

Requirements.txt

Core Data Science & ML

numpy>=1.21.0
pandas>=1.3.0
scikit-learn>=0.24.2

Deep Learning

tensorflow>=2.12.0
keras>=2.12.0

Data Visualization

matplotlib>=3.4.0
plotly>=5.13.0
streamlit-plotly-events>=0.0.6

Web Framework & Components

streamlit>=1.24.0

fastapi
pycryptodome
python-dotenv

Stock Market Data

yfinance>=0.2.18

Authentication & Security

python-jose[cryptography]>=3.3.0 # JWT tokens
passlib[bcrypt]>=1.7.4 # Password hashing
python-multipart>=0.0.9 # Form data parsing
pyjwt==2.8.0 # JWT encoding/decoding
bleach>=6.0.0 # HTML sanitization
qrcode>=7.3.1 # For 2FA QR codes
pyotp>=2.8.0 # For 2FA implementation

Database

SQLAlchemy==2.0.25 # ORM
aiosqlite==0.19.0 # Async SQLite support
alembic==1.13.1 # Database migrations

Payment Integration

paytmchecksum>=1.0.0 # PayTM payment gateway integration
requests>=2.31.0 # HTTP requests for payment API

Time & Date Handling

pytz>=2023.3
python-dateutil>=2.8.2

Type Checking & Validation

pydantic==2.5.3 # Data validation
email-validator==2.1.0.post1 # Email validation

Email Services

jinja2>=3.1.2 # Email templates