# niveenppaudyal-cell/paatvaidhyateachable architecture

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

- Interactive diagram: https://gitdiagram.com/niveenppaudyal-cell/paatvaidhyateachable
- Repository: https://github.com/niveenppaudyal-cell/paatvaidhyateachable

## Overview

This is a browser-only plant leaf disease classifier. The documented workflow is: a user selects a leaf photo, the page runs inference with the exported TensorFlow.js model, then shows a class and confidence score. The README documents these relationships, but no source excerpts were provided, so internal implementation details beyond that workflow are not represented.

Main entry points: [`index.html`](https://github.com/niveenppaudyal-cell/paatvaidhyateachable/blob/main/index.html) (Disease inference), [`my_model/model.json`](https://github.com/niveenppaudyal-cell/paatvaidhyateachable/blob/main/my_model/model.json) (Exported model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web_app["Browser app"]
  node_photo_upload["Photo upload<br/>[index.html]"]
  node_inference["Disease inference<br/>[index.html]"]
  node_prediction_result["Prediction result<br/>[index.html]"]
end

subgraph group_model_assets["Model assets"]
  node_exported_model["Exported model<br/>[model.json]"]
end

node_user(("User"))

node_user -->|"selects photo"| node_photo_upload
node_photo_upload -->|"provides photo"| node_inference
node_inference -->|"loads model"| node_exported_model
node_inference -->|"returns prediction"| node_prediction_result
node_prediction_result -->|"shows result"| node_user

click node_photo_upload "https://github.com/niveenppaudyal-cell/paatvaidhyateachable/blob/main/index.html"
click node_inference "https://github.com/niveenppaudyal-cell/paatvaidhyateachable/blob/main/index.html"
click node_prediction_result "https://github.com/niveenppaudyal-cell/paatvaidhyateachable/blob/main/index.html"
click node_exported_model "https://github.com/niveenppaudyal-cell/paatvaidhyateachable/blob/main/my_model/model.json"

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_photo_upload,node_inference,node_prediction_result,node_user toneBlue
class node_exported_model toneAmber
```

## Components

### Browser app

- [Photo upload](https://github.com/niveenppaudyal-cell/paatvaidhyateachable/blob/main/index.html): `index.html`
- [Disease inference](https://github.com/niveenppaudyal-cell/paatvaidhyateachable/blob/main/index.html): `index.html`
- [Prediction result](https://github.com/niveenppaudyal-cell/paatvaidhyateachable/blob/main/index.html): `index.html`

### Model assets

- [Exported model](https://github.com/niveenppaudyal-cell/paatvaidhyateachable/blob/main/my_model/model.json): `my_model/model.json`

### Other components

- **User**

## Connections

- User → Photo upload: selects photo (evidence: `README.md`)
- Photo upload → Disease inference: provides photo (evidence: `README.md`)
- Disease inference → Exported model: loads model (evidence: `README.md`)
- Disease inference → Prediction result: returns prediction (evidence: `README.md`)
- Prediction result → User: shows result (evidence: `README.md`)
