This Flask web application predicts the risk of heart disease based on user inputs about their symptoms and lifestyle. It utilizes a machine learning model trained on a comprehensive dataset to provide predictions. The application is designed to be user-friendly and responsive, accessible via web browsers on various devices.
The live application can be accessed at Heart Disease Prediction App.
The machine learning model was trained using a dataset focused on heart disease risk factors, which can be explored on Kaggle: Heart Failure Prediction.
- Predictive Modeling: Utilizes a trained model to predict heart disease risk.
- User Interface: Simple and intuitive form for inputting symptoms and risk factors.
- Accessibility: Fully accessible via web browsers on desktops and mobile devices.
- Docker
- Git (optional, recommended for version control)
-
Clone the repository:
git clone https://github.com/Reeju2019/Python-final-project cd Python-final-project -
Build the Docker container:
docker build -t myflaskapp . -
Run the container:
docker run -p 5000:5000 myflaskapp
Access the application at http://localhost:5000.
Simply visit Heart Disease Prediction App to use the application deployed on Render.
To use the application, follow these steps:
- Navigate to the URL provided.
- Fill in the details in the form regarding symptoms and lifestyle factors.
- Submit the form to receive the risk prediction of heart disease.
Contributions to the project are welcome! Please consider the following steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes and commit them (
git commit -am 'Add some feature'). - Push to the branch (
git push origin feature-branch). - Create a new Pull Request.
For code documentation we have used Sphinx. To run the document
- Go to the doc folder.
- Then Build folder
- Then run the index.html file in your local browser
- After updating the code please update the sphinx doc as well.
- to update the doc run the command 'sphinx-build -b html docs/source docs/build'in the doc folder.
- Dataset provided by Kaggle - Heart Failure Prediction.
- Hosting provided by Render.
This project is licensed under the MIT License.