Skip to content

Commit d4479a2

Browse files
docs: fix Mermaid diagram syntax in README
1 parent d34fc5b commit d4479a2

1 file changed

Lines changed: 25 additions & 12 deletions

File tree

README.md

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,39 @@ flowchart TD
3333
classDef hf fill:#ffcc00,stroke:#d4a017,stroke-width:2px,color:#333;
3434
3535
%% Core Components
36-
UI[🖥️ Streamlit UI<br/>(IST Display)]:::frontend
37-
API[⚙️ FastAPI Backend<br/>(UTC Storage)]:::backend
38-
HUB[(🤗 HF Hub Dataset<br/>tinyml-logs)]:::hf
36+
UI[Streamlit UI - IST Display]:::frontend
37+
API[FastAPI Backend - UTC Storage]:::backend
38+
HUB[(HF Hub Dataset - tinyml-logs)]:::hf
3939
40-
subgraph "🚀 Hugging Face Space (Container)"
40+
subgraph "Hugging Face Space Container"
4141
UI <-->|Internal localhost:8000| API
42-
DB_LOCAL[(🗄️ SQLite DB<br/>Local Cache)]:::backend
42+
DB_LOCAL[(SQLite DB - Local Cache)]:::backend
4343
API <--> DB_LOCAL
4444
end
4545
46-
API <-->|🔒 HfApi Sync| HUB
46+
API <-->|HfApi Sync| HUB
4747
4848
%% ML Subgraph
49-
subgraph ML [🧠 Machine Learning & Inference Pipeline]
50-
ENS{Ensemble Engine<br/>Soft-Voting}:::ml_node
51-
Models[Classifiers:<br/>RF, SVM, LogReg, NN, KNN]:::ml_node
52-
SHAP[🔍 SHAP Explainer]:::ml_node
49+
subgraph ML [Ensemble & Inference Pipeline]
50+
ENS{Ensemble Engine}:::ml_node
51+
Models[Classifiers: RF, SVM, LogReg, NN, KNN]:::ml_node
52+
SHAP[SHAP Explainer]:::ml_node
5353
end
54-
55-
%% ... rest of the diagram unchanged ...
54+
55+
%% Edge Quantization Subgraph
56+
subgraph Quantization [Hardware Export]
57+
TRANS[C-Code Transpiler]:::edge_tech
58+
HEADER((tinyml_model.h)):::edge_tech
59+
MCU[ESP32 / Cortex-M Node]:::edge_tech
60+
end
61+
62+
API -->|Predict| ENS
63+
ENS --> Models
64+
API -->|Explain| SHAP
65+
SHAP -.-> Models
66+
API -->|Export| TRANS
67+
TRANS --> HEADER
68+
HEADER -->|Flash| MCU
5669
```
5770

5871
### Modular Repository Structure

0 commit comments

Comments
 (0)