Diabetes Prediction App

This is a web application for predicting diabetes based on user input using a machine learning model.

Project Structure

  • app.py: Flask application script.
  • train_model.ipynb: Jupyter Notebook for training the model.
  • diabetes_prediction_model.pkl: Trained ML model (pickle file).
  • templates/: HTML templates for the web application.

Getting Started

Prerequisites

  • Python (3.x)
  • Jupyter Notebook

Installation

  1. Clone the repository:

    git clone <repository-url>

Install the required dependencies:

pip install -r requirements.txt

-Run the Jupyter Notebook train_model.ipynb:

Train the machine learning model and save it as diabetes_prediction_model.pkl.

##Run the Flask application:

python app.py

  • Open your web browser and go to http://127.0.0.1:5000/ to access the Diabetes Prediction App.

  • Click on the "Predict" link to navigate to the prediction page.

  • Enter the required features for prediction and click on the "Predict" button.

License

  • This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • This project is based on a machine learning model trained on the Diabetes dataset.
  • Inspired by the need for a simple and accessible tool for diabetes prediction.

Replace <repository-url> with the actual URL of your Git repository. Save this content in a file named README.md in the root of your project directory.