# prat3564/house-price-pred architecture

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

- Interactive diagram: https://gitdiagram.com/prat3564/house-price-pred
- Repository: https://github.com/prat3564/house-price-pred

## Overview

This is a small Flask house-price prediction app. A user submits area, bathroom, and bedroom counts; the route converts them into model features, predicts a price, and renders the result or an error in the page. The shown source establishes these runtime links; the README provides no further capability detail. The dataset and notebook are present, but their behavior and relationship to the saved model are not established by the available excerpts.

Main entry points: [`House_Price/app.py`](https://github.com/prat3564/house-price-pred/blob/main/House_Price/app.py) (Prediction route), [`House_Price/templates/index.html`](https://github.com/prat3564/house-price-pred/blob/main/House_Price/templates/index.html) (Result page), [`House_Price/model/home_prices_model.pickle`](https://github.com/prat3564/house-price-pred/blob/main/House_Price/model/home_prices_model.pickle) (Trained model)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_route["Prediction route<br/>[app.py]"]
node_model["Trained model"]
node_page["Result page<br/>[index.html]"]

node_user -->|"submits features"| node_route
node_route -->|"predicts price"| node_model
node_route -->|"renders result"| node_page
node_page -->|"shows response"| node_user

click node_route "https://github.com/prat3564/house-price-pred/blob/main/House_Price/app.py"
click node_model "https://github.com/prat3564/house-price-pred/blob/main/House_Price/model/home_prices_model.pickle"
click node_page "https://github.com/prat3564/house-price-pred/blob/main/House_Price/templates/index.html"

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_user toneBlue
class node_route toneMint
class node_model toneIndigo
class node_page toneTeal
```

## Components

### Other components

- **User**
- [Prediction route](https://github.com/prat3564/house-price-pred/blob/main/House_Price/app.py): `House_Price/app.py`
- [Trained model](https://github.com/prat3564/house-price-pred/blob/main/House_Price/model/home_prices_model.pickle): `House_Price/model/home_prices_model.pickle`
- [Result page](https://github.com/prat3564/house-price-pred/blob/main/House_Price/templates/index.html): `House_Price/templates/index.html`

## Connections

- User → Prediction route: submits features (evidence: `House_Price/app.py`)
- Prediction route → Trained model: predicts price (evidence: `House_Price/app.py`)
- Prediction route → Result page: renders result (evidence: `House_Price/app.py`)
- Result page → User: shows response
