# madhulikaracherla/telco-churn architecture

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

- Interactive diagram: https://gitdiagram.com/madhulikaracherla/telco-churn
- Repository: https://github.com/madhulikaracherla/telco-churn

## Overview

This is a small Streamlit app for estimating customer cancellation risk. A user enters subscription details, submits the form, and sees a cancellation probability and predicted outcome. The single source file handles input, model loading, prediction, and display; the serialized model is a separate artifact. The graph reflects only relationships visible in the provided source.

Main entry points: [`app.py`](https://github.com/madhulikaracherla/telco-churn/blob/main/app.py) (Cancellation prediction), [`model.pkl`](https://github.com/madhulikaracherla/telco-churn/blob/main/model.pkl) (Trained model)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_customer(("Customer"))
node_details_form["Details form<br/>[app.py]"]
node_prediction["Cancellation prediction<br/>[app.py]"]
node_model["Trained model<br/>[model.pkl]"]
node_estimate["Estimate display<br/>[app.py]"]

node_customer -->|"enters details"| node_details_form
node_details_form -->|"submits details"| node_prediction
node_prediction -->|"loads and queries"| node_model
node_prediction -->|"displays estimate"| node_estimate

click node_details_form "https://github.com/madhulikaracherla/telco-churn/blob/main/app.py"
click node_prediction "https://github.com/madhulikaracherla/telco-churn/blob/main/app.py"
click node_model "https://github.com/madhulikaracherla/telco-churn/blob/main/model.pkl"
click node_estimate "https://github.com/madhulikaracherla/telco-churn/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_customer,node_model toneIndigo
class node_details_form,node_prediction,node_estimate toneTeal
```

## Components

### Other components

- **Customer**
- [Details form](https://github.com/madhulikaracherla/telco-churn/blob/main/app.py): `app.py`
- [Cancellation prediction](https://github.com/madhulikaracherla/telco-churn/blob/main/app.py): `app.py`
- [Trained model](https://github.com/madhulikaracherla/telco-churn/blob/main/model.pkl): `model.pkl`
- [Estimate display](https://github.com/madhulikaracherla/telco-churn/blob/main/app.py): `app.py`

## Connections

- Customer → Details form: enters details (evidence: `app.py`)
- Details form → Cancellation prediction: submits details (evidence: `app.py`)
- Cancellation prediction → Trained model: loads and queries (evidence: `app.py`)
- Cancellation prediction → Estimate display: displays estimate (evidence: `app.py`)
