A simple Streamlit web app that uses a trained logistic regression model to estimate heart disease risk from a small set of clinical inputs.
The app loads a pre-trained model, scaler, and expected feature list from the repository and turns user inputs into a prediction in the browser. It is designed to be lightweight and easy to deploy on GitHub and Streamlit Community Cloud.
- Interactive Streamlit form for entering patient details
- One-click prediction with risk feedback
- Uses the bundled model artifacts in the repo
- Minimal setup for local development and deployment
- Python
- Streamlit
- Pandas
- Joblib
- Scikit-learn
app.py- main Streamlit applicationLogisticRegressionHeart.pkl- trained classification modelscaler.pkl- fitted feature scalercolumns.pkl- expected model input columns
- Create and activate a virtual environment.
- Install the required packages:
pip install streamlit pandas joblib scikit-learn- Run the app:
streamlit run app.pyThis app provides an ML-based estimate and is not a medical diagnosis tool. It should not be used as a substitute for professional medical advice.