Skip to content

Heart Risk Predictor ✅ Technologies Used: Python (Flask) Keras / TensorFlow NumPy, Scikit-learn HTML + CSS + SVG

Notifications You must be signed in to change notification settings

DULAKSHANA404/heart-tumor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💔Heart Risk Predictor

Built with Python, Flask, and machine learning.

🔧 Features

  • Input: Age, cholesterol, HDL, blood pressure med, diabetes, smoking status, etc.
  • Output: Heart risk percentage with savage commentary
  • Displays a cartoon heart image based on prediction

📦 Requirements

Make sure Python 3.8+ is installed.

Then install dependencies with:

pip install -r requirements.txt

▶️ Run the App Locally

💻 Using flask run:

# On Windows (CMD)
set FLASK_APP=main.py
set FLASK_ENV=development
flask run
# On macOS/Linux or Git Bash
export FLASK_APP=main.py
export FLASK_ENV=development
flask run

Open browser and go to: http://127.0.0.1:5000

📁 Project Structure

.
├── main.py
├── templates/
│   └── home.html
│   └── predict.html
├── static/
│   └── styles_2.css,styles.css
│   └── angry_heart.png
├── model/
│   └── model.keras
│   └── data.pkl,target.plk
├── requirements.txt
├── Procfile
└── README.md

About

Heart Risk Predictor ✅ Technologies Used: Python (Flask) Keras / TensorFlow NumPy, Scikit-learn HTML + CSS + SVG

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published