The HealthRiskAI App is designed to predict the risk of a heart attack using machine learning. It provides a user-friendly interface to input relevant medical data and receive a prediction about the likelihood of a heart attack.
- Predicts heart attack risk based on input data.
- User-friendly web interface.
- Utilizes a pre-trained ml model.
- Python 3.x
- Django
- scikit-learn
- Other dependencies listed in
requirements.txt
- Clone this repository:
git clone https://github.com/Stacker-AI/HealthRisk-AI
- Navigate to the project directory:
cd HealthRisk-AI
- Create a virtual environment:
python3 -m venv venv
- Activate the virtual environment:
venv\Scripts\activate
Extra Step:
Add all Django env to the path.
- Install the required dependencies:
pip install -r requirements.txt
- Run database migrations:
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py migrate --run-syncdb
- Start the development server:
python3 manage.py runserver
- Access the app in your web browser:
http://localhost:8000/
- Run the Development server
Run ng serve
for a dev server. Navigate to http://localhost:4200/
.
- Browse the App 🙂
- Access the web interface by visiting the provided URL.
- Fill out the medical data form with relevant information.
- Click the "Predict" button to obtain the heart attack risk prediction.
- The app will display the prediction result along with relevant information.