Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- frontend/pages/6_About.py +23 -22
frontend/pages/6_About.py
CHANGED
|
@@ -121,43 +121,44 @@ graph = graphviz.Digraph(node_attr={'shape': 'box', 'style': 'rounded,filled', '
|
|
| 121 |
graph_attr={'rankdir': 'TB', 'splines': 'ortho', 'nodesep': '1.0', 'bgcolor': 'transparent', 'fontcolor': 'white'})
|
| 122 |
|
| 123 |
# Define UI & API nodes at the top
|
| 124 |
-
graph.node('UI', 'Streamlit Frontend\nInteractive Dashboard (IST)', fillcolor='#
|
| 125 |
-
graph.node('API', 'FastAPI Backend\nInternal Routing (UTC)', fillcolor='#
|
| 126 |
-
graph.node('HUB', 'HF Hub Dataset\nCentralized History Store', shape='folder', fillcolor='#
|
| 127 |
-
graph.node('DB', 'SQLite DB\nLocal Instance Cache', shape='cylinder', fillcolor='#
|
| 128 |
|
| 129 |
# Core connections
|
| 130 |
-
graph.edge('UI', 'API', label=' internal localhost:8000', color='#
|
| 131 |
-
graph.edge('API', 'DB', label=' Read/Write', color='#
|
| 132 |
-
graph.edge('API', 'HUB', label=' HfApi Sync (Persistent)', color='#
|
| 133 |
|
| 134 |
# Machine Learning Subgraph
|
| 135 |
with graph.subgraph(name='cluster_ml') as ml:
|
| 136 |
-
ml.attr(label='Machine Learning & Inference Pipeline', style='dashed', color='#
|
| 137 |
-
ml.node('ENS', 'Ensemble Engine\nSoft-Voting Aggregator', shape='diamond', fillcolor='#
|
| 138 |
-
ml.node('MODELS', 'Classifiers\n(RF, SVM, LogReg, NN, KNN)', fillcolor='#
|
| 139 |
-
ml.node('SHAP', 'SHAP Explainer\nFeature Impact Analysis', fillcolor='#
|
| 140 |
|
| 141 |
# Hardware Export Subgraph
|
| 142 |
with graph.subgraph(name='cluster_edge') as edge:
|
| 143 |
-
edge.attr(label='Hardware & Edge AI Export', style='dashed', color='#
|
| 144 |
-
edge.node('TRANS', 'C-Code Transpiler\nINT8 Quantization', fillcolor='#
|
| 145 |
-
edge.node('HEADER', 'tinyml_model.h\nOptimized Header File', shape='note', fillcolor='#
|
| 146 |
-
edge.node('MCU', 'ESP32 / ARM Cortex-M\nMicrocontroller Node', fillcolor='#
|
| 147 |
|
| 148 |
# Map Cross-cluster edges
|
| 149 |
-
graph.edge('API', 'ENS', label=' Predict', color='#
|
| 150 |
-
graph.edge('ENS', 'MODELS', color='#
|
| 151 |
|
| 152 |
-
graph.edge('API', 'SHAP', label=' Explain', color='#
|
| 153 |
-
graph.edge('SHAP', 'MODELS', style='dashed', label=' Analyzes Trees', fontcolor='#
|
| 154 |
|
| 155 |
-
graph.edge('API', 'TRANS', label=' Export Config', color='#
|
| 156 |
-
graph.edge('TRANS', 'HEADER', label=' Scale FP32 to INT8', fontcolor='#
|
| 157 |
-
graph.edge('HEADER', 'MCU', label=' Flash Firmware', color='#
|
| 158 |
|
| 159 |
st.graphviz_chart(graph, use_container_width=True)
|
| 160 |
|
|
|
|
| 161 |
st.markdown("---")
|
| 162 |
st.markdown("### ✨ Core Capabilities")
|
| 163 |
|
|
|
|
| 121 |
graph_attr={'rankdir': 'TB', 'splines': 'ortho', 'nodesep': '1.0', 'bgcolor': 'transparent', 'fontcolor': 'white'})
|
| 122 |
|
| 123 |
# Define UI & API nodes at the top
|
| 124 |
+
graph.node('UI', 'Streamlit Frontend\nInteractive Dashboard (IST)', fillcolor='#1c1f26', fontcolor='#FFFFFF', color='#FF4B4B', penwidth='2.5')
|
| 125 |
+
graph.node('API', 'FastAPI Backend\nInternal Routing (UTC)', fillcolor='#1c1f26', fontcolor='#FFFFFF', color='#00D1FF', penwidth='2.5')
|
| 126 |
+
graph.node('HUB', 'HF Hub Dataset\nCentralized History Store', shape='folder', fillcolor='#1c1f26', fontcolor='#FFFFFF', color='#FFD700', penwidth='2.5')
|
| 127 |
+
graph.node('DB', 'SQLite DB\nLocal Instance Cache', shape='cylinder', fillcolor='#1c1f26', fontcolor='#FFFFFF', color='#BF5AF2', penwidth='2.5')
|
| 128 |
|
| 129 |
# Core connections
|
| 130 |
+
graph.edge('UI', 'API', label=' internal localhost:8000', color='#475569', fontcolor='#94A3B8')
|
| 131 |
+
graph.edge('API', 'DB', label=' Read/Write', color='#475569', fontcolor='#94A3B8')
|
| 132 |
+
graph.edge('API', 'HUB', label=' HfApi Sync (Persistent)', color='#475569', fontcolor='#94A3B8')
|
| 133 |
|
| 134 |
# Machine Learning Subgraph
|
| 135 |
with graph.subgraph(name='cluster_ml') as ml:
|
| 136 |
+
ml.attr(label='Machine Learning & Inference Pipeline', style='dashed', color='#334155', fontcolor='#94A3B8')
|
| 137 |
+
ml.node('ENS', 'Ensemble Engine\nSoft-Voting Aggregator', shape='diamond', fillcolor='#1c1f26', fontcolor='#FFFFFF', color='#FF9F0A', penwidth='2.5')
|
| 138 |
+
ml.node('MODELS', 'Classifiers\n(RF, SVM, LogReg, NN, KNN)', fillcolor='#1c1f26', fontcolor='#FFFFFF', color='#FF9F0A', penwidth='2.5')
|
| 139 |
+
ml.node('SHAP', 'SHAP Explainer\nFeature Impact Analysis', fillcolor='#1c1f26', fontcolor='#FFFFFF', color='#FF9F0A', penwidth='2.5')
|
| 140 |
|
| 141 |
# Hardware Export Subgraph
|
| 142 |
with graph.subgraph(name='cluster_edge') as edge:
|
| 143 |
+
edge.attr(label='Hardware & Edge AI Export', style='dashed', color='#334155', fontcolor='#94A3B8')
|
| 144 |
+
edge.node('TRANS', 'C-Code Transpiler\nINT8 Quantization', fillcolor='#1c1f26', fontcolor='#FFFFFF', color='#32D74B', penwidth='2.5')
|
| 145 |
+
edge.node('HEADER', 'tinyml_model.h\nOptimized Header File', shape='note', fillcolor='#1c1f26', fontcolor='#FFFFFF', color='#32D74B', penwidth='2.5')
|
| 146 |
+
edge.node('MCU', 'ESP32 / ARM Cortex-M\nMicrocontroller Node', fillcolor='#1c1f26', fontcolor='#FFFFFF', color='#32D74B', penwidth='2.5')
|
| 147 |
|
| 148 |
# Map Cross-cluster edges
|
| 149 |
+
graph.edge('API', 'ENS', label=' Predict', color='#CBD5E1', fontcolor='#CBD5E1')
|
| 150 |
+
graph.edge('ENS', 'MODELS', color='#CBD5E1')
|
| 151 |
|
| 152 |
+
graph.edge('API', 'SHAP', label=' Explain', color='#CBD5E1', fontcolor='#CBD5E1')
|
| 153 |
+
graph.edge('SHAP', 'MODELS', style='dashed', label=' Analyzes Trees', fontcolor='#64748B', color='#64748B')
|
| 154 |
|
| 155 |
+
graph.edge('API', 'TRANS', label=' Export Config', color='#CBD5E1', fontcolor='#CBD5E1')
|
| 156 |
+
graph.edge('TRANS', 'HEADER', label=' Scale FP32 to INT8', fontcolor='#64748B', color='#64748B')
|
| 157 |
+
graph.edge('HEADER', 'MCU', label=' Flash Firmware', color='#CBD5E1')
|
| 158 |
|
| 159 |
st.graphviz_chart(graph, use_container_width=True)
|
| 160 |
|
| 161 |
+
|
| 162 |
st.markdown("---")
|
| 163 |
st.markdown("### ✨ Core Capabilities")
|
| 164 |
|