This project predicts the risk of a heart attack using machine learning models based on a dataset containing various medical and demographic factors. The model is trained using a classification algorithm (XGBoost) and deployed via a Flask web application.
Snapshot 1: The homepage of the Heart Attack Risk Prediction tool, where users can input their medical data to predict the risk of a heart attack.
Snapshot 2: The prediction result page, which shows whether the model predicts a risk of heart attack based on the input data.
You can access the repository for this project here.
Where You Can You find :-
1) app.py: The Flask application code.
2) templates/index.html: The input form.
3) templates/result.html: The result page.
4) data/Heart_data.csv: The dataset used for training the model.
git clone https://github.com/AFFANALAM07/Heart-Attack-Risk-Prediction
cd heart-attack-risk-prediction
pip install -r requirements.txt
python app.py