# vaibhavgovindwar/diabetes-prediction-app architecture

> Architecture diagram of the GitHub repository vaibhavgovindwar/diabetes-prediction-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vaibhavgovindwar/diabetes-prediction-app
- Repository: https://github.com/vaibhavgovindwar/diabetes-prediction-app

## Overview

This repository is a Streamlit diabetes-risk prediction app, with a notebook and Pima dataset representing its model-development context. The main user flow is to enter eight measurements, request a prediction, and see a binary label and probability. At runtime, the app downloads model and scaler files from Google Drive when absent, scales the inputs, and calls the model. The app source is excerpted; training details and the background image are not, so those parts are limited to README-supported relationships.

Main entry points: [`app.py`](https://github.com/vaibhavgovindwar/diabetes-prediction-app/blob/main/app.py) (Streamlit app), [`Pima indians diabetes dataset.csv`](https://github.com/vaibhavgovindwar/diabetes-prediction-app/blob/main/Pima%20indians%20diabetes%20dataset.csv) (Pima dataset), [`pima-indian-diabetes-binary-classification.ipynb`](https://github.com/vaibhavgovindwar/diabetes-prediction-app/blob/main/pima-indian-diabetes-binary-classification.ipynb) (Training notebook)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_development["Model development"]
  node_dataset[("Pima dataset")]
  node_notebook["Training notebook"]
end

subgraph group_runtime["Prediction runtime"]
  node_drive[("Google Drive")]
  node_scaler["Feature scaler<br/>[app.py]"]
  node_model["Keras model<br/>[app.py]"]
end

subgraph group_presentation["User interface"]
  node_app["Streamlit app<br/>[app.py]"]
  node_result["Prediction result<br/>[app.py]"]
end

node_user(("User"))

node_dataset -->|"trains on"| node_notebook
node_user -->|"enters measurements"| node_app
node_app -->|"downloads artifacts"| node_drive
node_app -->|"scales inputs"| node_scaler
node_app -->|"predicts with"| node_model
node_app -->|"displays"| node_result

click node_dataset "https://github.com/vaibhavgovindwar/diabetes-prediction-app/blob/main/Pima%20indians%20diabetes%20dataset.csv"
click node_notebook "https://github.com/vaibhavgovindwar/diabetes-prediction-app/blob/main/pima-indian-diabetes-binary-classification.ipynb"
click node_app "https://github.com/vaibhavgovindwar/diabetes-prediction-app/blob/main/app.py"
click node_scaler "https://github.com/vaibhavgovindwar/diabetes-prediction-app/blob/main/app.py"
click node_model "https://github.com/vaibhavgovindwar/diabetes-prediction-app/blob/main/app.py"
click node_result "https://github.com/vaibhavgovindwar/diabetes-prediction-app/blob/main/app.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dataset,node_notebook,node_user toneBlue
class node_drive,node_scaler,node_model toneAmber
class node_app,node_result toneMint
```

## Components

### Model development

- [Pima dataset](https://github.com/vaibhavgovindwar/diabetes-prediction-app/blob/main/Pima%20indians%20diabetes%20dataset.csv): `Pima indians diabetes dataset.csv`
- [Training notebook](https://github.com/vaibhavgovindwar/diabetes-prediction-app/blob/main/pima-indian-diabetes-binary-classification.ipynb): `pima-indian-diabetes-binary-classification.ipynb`

### Prediction runtime

- **Google Drive**
- [Feature scaler](https://github.com/vaibhavgovindwar/diabetes-prediction-app/blob/main/app.py): `app.py`
- [Keras model](https://github.com/vaibhavgovindwar/diabetes-prediction-app/blob/main/app.py): `app.py`

### User interface

- [Streamlit app](https://github.com/vaibhavgovindwar/diabetes-prediction-app/blob/main/app.py): `app.py`
- [Prediction result](https://github.com/vaibhavgovindwar/diabetes-prediction-app/blob/main/app.py): `app.py`

### Other components

- **User**

## Connections

- Pima dataset → Training notebook: trains on (evidence: `README.md`)
- User → Streamlit app: enters measurements (evidence: `app.py`)
- Streamlit app → Google Drive: downloads artifacts (evidence: `app.py`)
- Streamlit app → Feature scaler: scales inputs (evidence: `app.py`)
- Streamlit app → Keras model: predicts with (evidence: `app.py`)
- Streamlit app → Prediction result: displays (evidence: `app.py`)
