# bhavyanpotla/ml-workshop-flames-2026 architecture

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

- Interactive diagram: https://gitdiagram.com/bhavyanpotla/ml-workshop-flames-2026
- Repository: https://github.com/bhavyanpotla/ml-workshop-flames-2026

## Overview

This is a small Streamlit app for predicting Fahrenheit from a Celsius input using a trained three-neuron network. The user adjusts the Celsius control; the app loads learned parameters from JSON, runs NumPy inference, and displays the prediction and hidden-layer activations. The README also documents the training/export workflow, but training is not part of this repository’s runtime. The graph reflects the shown app code and documented workflow; no separate training implementation is present in the tree.

Main entry points: [`app.py`](https://github.com/bhavyanpotla/ml-workshop-flames-2026/blob/main/app.py) (Neural forward pass), [`model.json`](https://github.com/bhavyanpotla/ml-workshop-flames-2026/blob/main/model.json) (Learned parameters)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_temperature_ui["Temperature input<br/>[app.py]"]
  node_result_view["Prediction display<br/>[app.py]"]
end

subgraph group_runtime["Inference runtime"]
  node_model_loader["Model loader<br/>[app.py]"]
  node_learned_parameters["Learned parameters<br/>[model.json]"]
  node_forward_pass["Neural forward pass<br/>[app.py]"]
end

node_user(("User"))

node_user -->|"enters Celsius"| node_temperature_ui
node_model_loader -->|"reads"| node_learned_parameters
node_model_loader -->|"prepares weights"| node_forward_pass
node_temperature_ui -->|"calls"| node_forward_pass
node_forward_pass -->|"returns prediction"| node_result_view
node_result_view -->|"shows result"| node_user

click node_temperature_ui "https://github.com/bhavyanpotla/ml-workshop-flames-2026/blob/main/app.py"
click node_result_view "https://github.com/bhavyanpotla/ml-workshop-flames-2026/blob/main/app.py"
click node_model_loader "https://github.com/bhavyanpotla/ml-workshop-flames-2026/blob/main/app.py"
click node_learned_parameters "https://github.com/bhavyanpotla/ml-workshop-flames-2026/blob/main/model.json"
click node_forward_pass "https://github.com/bhavyanpotla/ml-workshop-flames-2026/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_temperature_ui,node_result_view,node_user toneBlue
class node_model_loader,node_learned_parameters,node_forward_pass toneAmber
```

## Components

### User interface

- [Temperature input](https://github.com/bhavyanpotla/ml-workshop-flames-2026/blob/main/app.py): `app.py`
- [Prediction display](https://github.com/bhavyanpotla/ml-workshop-flames-2026/blob/main/app.py): `app.py`

### Inference runtime

- [Model loader](https://github.com/bhavyanpotla/ml-workshop-flames-2026/blob/main/app.py): `app.py`
- [Learned parameters](https://github.com/bhavyanpotla/ml-workshop-flames-2026/blob/main/model.json): `model.json`
- [Neural forward pass](https://github.com/bhavyanpotla/ml-workshop-flames-2026/blob/main/app.py): `app.py`

### Other components

- **User**

## Connections

- User → Temperature input: enters Celsius (evidence: `README.md`)
- Model loader → Learned parameters: reads (evidence: `app.py`)
- Model loader → Neural forward pass: prepares weights (evidence: `app.py`)
- Temperature input → Neural forward pass: calls (evidence: `app.py`)
- Neural forward pass → Prediction display: returns prediction (evidence: `app.py`)
- Prediction display → User: shows result (evidence: `app.py`)
