This project is a web application designed to predict diabetes in female patients using machine learning. The application allows users to input various health attributes and receive a prediction on whether the patient has diabetes. The goal is to provide early detection and awareness. 🤖💡
-
Clone the repository:
git clone https://github.com/aurelioo29/Diabetes-Prediction-App.git
cd Diabetes-Prediction-App -
Create a virtual environment:
python -m venv env
- On macOS/Linux:
source env/bin/activate- On Windows:
env\Scripts\activate
-
Install the dependencies:
pip install -r requirements.txt
-
Set up the database:
- Ensure you have MySQL installed and running. 🛠️
- Create a database named
diabetes_prediction.📊 - Run the SQL script and import the
diabetes_prediction.sqlfile into the database.
-
Run the Flask application:
python app.py
-
Access the application:
Open your web browser and navigate to
http://127.0.0.1:5000. 🌐
- Fill out the form with the required health attributes. 🏥
- Click the "Prediksi" button to get the prediction. 🔮
- The prediction result will be displayed along with the input data and classification report. 📊
This project uses the following dependencies:
- Flask
- Flask-SQLAlchemy
- MySQL-connector-python
- PyMySQL
- scikit-learn
- numpy
- scipy
- joblib
I welcome contributions! 🙌 Please fork the repository and submit a pull request. Together, we can improve this application. ✨