# gkrishna4346/predictive-maintenance-capstone architecture

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

- Interactive diagram: https://gitdiagram.com/gkrishna4346/predictive-maintenance-capstone
- Repository: https://github.com/gkrishna4346/predictive-maintenance-capstone

## Overview

This is a Streamlit predictive-maintenance app: a user enters six engine measurements, requests a prediction, and sees an engine-condition and maintenance recommendation. The app downloads a serialized AdaBoost model from Hugging Face, loads it, and invokes prediction directly. The source tree also has datasets and training-related notebooks/scripts, but the sampled scripts are placeholders and the README documents no further workflow, so those connections are not inferred.

Main entry points: [`deployment/app.py`](https://github.com/gkrishna4346/predictive-maintenance-capstone/blob/main/deployment/app.py) (Streamlit app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_inputs["Engine inputs<br/>[app.py]"]
  node_app["Streamlit app<br/>[app.py]"]
end

subgraph group_inference["Model inference"]
  node_hub["Hugging Face Hub"]
  node_classifier["AdaBoost model"]
end

subgraph group_results["Prediction results"]
  node_condition["Engine condition<br/>[app.py]"]
  node_recommendation["Maintenance action<br/>[app.py]"]
end

node_user(("Operator"))

node_user -->|"enters readings"| node_inputs
node_inputs -->|"submits prediction"| node_app
node_app -->|"downloads model"| node_hub
node_app -->|"loads and predicts"| node_classifier
node_app -->|"displays result"| node_condition
node_app -->|"displays action"| node_recommendation

click node_inputs "https://github.com/gkrishna4346/predictive-maintenance-capstone/blob/main/deployment/app.py"
click node_app "https://github.com/gkrishna4346/predictive-maintenance-capstone/blob/main/deployment/app.py"
click node_condition "https://github.com/gkrishna4346/predictive-maintenance-capstone/blob/main/deployment/app.py"
click node_recommendation "https://github.com/gkrishna4346/predictive-maintenance-capstone/blob/main/deployment/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_inputs,node_app toneBlue
class node_hub,node_classifier toneAmber
class node_condition,node_recommendation toneMint
class node_user toneIndigo
```

## Components

### User interface

- [Engine inputs](https://github.com/gkrishna4346/predictive-maintenance-capstone/blob/main/deployment/app.py): `deployment/app.py`
- [Streamlit app](https://github.com/gkrishna4346/predictive-maintenance-capstone/blob/main/deployment/app.py): `deployment/app.py`

### Model inference

- **Hugging Face Hub**
- **AdaBoost model**

### Prediction results

- [Engine condition](https://github.com/gkrishna4346/predictive-maintenance-capstone/blob/main/deployment/app.py): `deployment/app.py`
- [Maintenance action](https://github.com/gkrishna4346/predictive-maintenance-capstone/blob/main/deployment/app.py): `deployment/app.py`

### Other components

- **Operator**

## Connections

- Operator → Engine inputs: enters readings (evidence: `deployment/app.py`)
- Engine inputs → Streamlit app: submits prediction (evidence: `deployment/app.py`)
- Streamlit app → Hugging Face Hub: downloads model (evidence: `deployment/app.py`)
- Streamlit app → AdaBoost model: loads and predicts (evidence: `deployment/app.py`)
- Streamlit app → Engine condition: displays result (evidence: `deployment/app.py`)
- Streamlit app → Maintenance action: displays action (evidence: `deployment/app.py`)
