# kavitha1112/floods-prediction-in-telangana architecture

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

- Interactive diagram: https://gitdiagram.com/kavitha1112/floods-prediction-in-telangana
- Repository: https://github.com/kavitha1112/floods-prediction-in-telangana

## Overview

This repository is a small Flask app for predicting flood possibility from a selected month and year. The shown workflow renders the input page, accepts a date submission, selects that month’s pretrained model, predicts from the year, and classifies the prediction using a threshold of 110. The README provides no further capability details, and the template and notebook contents were not sampled, so the graph is limited to behavior visible in app.py.

Main entry points: [`app.py`](https://github.com/kavitha1112/floods-prediction-in-telangana/blob/main/app.py) (Date submission), [`TrainedModels`](https://github.com/kavitha1112/floods-prediction-in-telangana/tree/main/TrainedModels) (Monthly models)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_page["Input page<br/>[app.py]"]
  node_submit["Date submission<br/>[app.py]"]
  node_result["Flood possibility<br/>[app.py]"]
end

subgraph group_inference["Flood inference"]
  node_models["Monthly models"]
  node_predict["Prediction and decision<br/>[app.py]"]
end

node_user(("User"))

node_user -.->|"opens"| node_page
node_page -->|"renders"| node_user
node_user -.->|"submits date"| node_submit
node_submit -->|"loads models"| node_models
node_submit -->|"predicts year"| node_predict
node_predict -->|"classifies threshold"| node_result
node_result -->|"renders result"| node_user

click node_page "https://github.com/kavitha1112/floods-prediction-in-telangana/blob/main/app.py"
click node_submit "https://github.com/kavitha1112/floods-prediction-in-telangana/blob/main/app.py"
click node_models "https://github.com/kavitha1112/floods-prediction-in-telangana/tree/main/TrainedModels"
click node_predict "https://github.com/kavitha1112/floods-prediction-in-telangana/blob/main/app.py"
click node_result "https://github.com/kavitha1112/floods-prediction-in-telangana/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_page,node_submit,node_result,node_user toneBlue
class node_models,node_predict toneAmber
```

## Components

### Web interface

- [Input page](https://github.com/kavitha1112/floods-prediction-in-telangana/blob/main/app.py): `app.py`
- [Date submission](https://github.com/kavitha1112/floods-prediction-in-telangana/blob/main/app.py): `app.py`
- [Flood possibility](https://github.com/kavitha1112/floods-prediction-in-telangana/blob/main/app.py): `app.py`

### Flood inference

- [Monthly models](https://github.com/kavitha1112/floods-prediction-in-telangana/tree/main/TrainedModels): `TrainedModels`
- [Prediction and decision](https://github.com/kavitha1112/floods-prediction-in-telangana/blob/main/app.py): `app.py`

### Other components

- **User**

## Connections

- User → Input page: opens
- Input page → User: renders (evidence: `app.py`)
- User → Date submission: submits date
- Date submission → Monthly models: loads models (evidence: `app.py`)
- Date submission → Prediction and decision: predicts year (evidence: `app.py`)
- Prediction and decision → Flood possibility: classifies threshold (evidence: `app.py`)
- Flood possibility → User: renders result (evidence: `app.py`)
