Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- frontend/pages/6_About.py +24 -18
frontend/pages/6_About.py
CHANGED
|
@@ -71,10 +71,16 @@ p, li, div {
|
|
| 71 |
|
| 72 |
/* Glass cards for the info/success/etc boxes */
|
| 73 |
div[data-testid="stExpander"], .stAlert {
|
| 74 |
-
background: rgba(255, 255, 255, 0.
|
| 75 |
-
border: 1px solid rgba(255, 255, 255, 0.
|
| 76 |
border-radius: 15px !important;
|
| 77 |
-
backdrop-filter: blur(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
}
|
| 79 |
|
| 80 |
.stMarkdown {
|
|
@@ -112,29 +118,29 @@ graph = graphviz.Digraph(node_attr={'shape': 'box', 'style': 'rounded,filled', '
|
|
| 112 |
graph_attr={'rankdir': 'TB', 'splines': 'ortho', 'nodesep': '1.0', 'bgcolor': 'transparent', 'fontcolor': 'white'})
|
| 113 |
|
| 114 |
# Define UI & API nodes at the top
|
| 115 |
-
graph.node('UI', '
|
| 116 |
-
graph.node('API', '
|
| 117 |
-
graph.node('HUB', '
|
| 118 |
-
graph.node('DB', '
|
| 119 |
|
| 120 |
# Core connections
|
| 121 |
-
graph.edge('UI', 'API', label=' internal localhost:8000', color='#
|
| 122 |
-
graph.edge('API', 'DB', label=' Read/Write', color='#
|
| 123 |
-
graph.edge('API', 'HUB', label=' HfApi Sync (Persistent)', color='#
|
| 124 |
|
| 125 |
# Machine Learning Subgraph
|
| 126 |
with graph.subgraph(name='cluster_ml') as ml:
|
| 127 |
-
ml.attr(label='
|
| 128 |
-
ml.node('ENS', 'Ensemble Engine\nSoft-Voting Aggregator', shape='diamond', fillcolor='#
|
| 129 |
-
ml.node('MODELS', 'Classifiers\n(RF, SVM, LogReg, NN, KNN)', fillcolor='#
|
| 130 |
-
ml.node('SHAP', '
|
| 131 |
|
| 132 |
# Hardware Export Subgraph
|
| 133 |
with graph.subgraph(name='cluster_edge') as edge:
|
| 134 |
-
edge.attr(label='
|
| 135 |
-
edge.node('TRANS', 'C-Code Transpiler\nINT8 Quantization', fillcolor='#
|
| 136 |
-
edge.node('HEADER', 'tinyml_model.h\nOptimized Header File', shape='note', fillcolor='#
|
| 137 |
-
edge.node('MCU', '
|
| 138 |
|
| 139 |
# Map Cross-cluster edges
|
| 140 |
graph.edge('API', 'ENS', label=' Predict', color='#cccccc', fontcolor='#cccccc')
|
|
|
|
| 71 |
|
| 72 |
/* Glass cards for the info/success/etc boxes */
|
| 73 |
div[data-testid="stExpander"], .stAlert {
|
| 74 |
+
background: rgba(255, 255, 255, 0.05) !important;
|
| 75 |
+
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
| 76 |
border-radius: 15px !important;
|
| 77 |
+
backdrop-filter: blur(12px);
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
/* Ensure text inside alerts/info boxes is high-contrast white */
|
| 81 |
+
.stAlert p, .stAlert div {
|
| 82 |
+
color: #ffffff !important;
|
| 83 |
+
font-weight: 500 !important;
|
| 84 |
}
|
| 85 |
|
| 86 |
.stMarkdown {
|
|
|
|
| 118 |
graph_attr={'rankdir': 'TB', 'splines': 'ortho', 'nodesep': '1.0', 'bgcolor': 'transparent', 'fontcolor': 'white'})
|
| 119 |
|
| 120 |
# Define UI & API nodes at the top
|
| 121 |
+
graph.node('UI', 'Streamlit Frontend\nInteractive Dashboard (IST)', fillcolor='#FFB6C1', fontcolor='#1a1a1a', color='#FF69B4', penwidth='2')
|
| 122 |
+
graph.node('API', 'FastAPI Backend\nInternal Routing (UTC)', fillcolor='#ADD8E6', fontcolor='#1a1a1a', color='#4682B4', penwidth='2')
|
| 123 |
+
graph.node('HUB', 'HF Hub Dataset\nCentralized History Store', shape='folder', fillcolor='#FFFACD', fontcolor='#1a1a1a', color='#F0E68C', penwidth='2')
|
| 124 |
+
graph.node('DB', 'SQLite DB\nLocal Instance Cache', shape='cylinder', fillcolor='#E6E6FA', fontcolor='#1a1a1a', color='#9370DB', penwidth='2')
|
| 125 |
|
| 126 |
# Core connections
|
| 127 |
+
graph.edge('UI', 'API', label=' internal localhost:8000', color='#aaaaaa', fontcolor='#aaaaaa')
|
| 128 |
+
graph.edge('API', 'DB', label=' Read/Write', color='#aaaaaa', fontcolor='#aaaaaa')
|
| 129 |
+
graph.edge('API', 'HUB', label=' HfApi Sync (Persistent)', color='#aaaaaa', fontcolor='#aaaaaa')
|
| 130 |
|
| 131 |
# Machine Learning Subgraph
|
| 132 |
with graph.subgraph(name='cluster_ml') as ml:
|
| 133 |
+
ml.attr(label='Machine Learning & Inference Pipeline', style='dashed', color='#777777', fontcolor='#cccccc')
|
| 134 |
+
ml.node('ENS', 'Ensemble Engine\nSoft-Voting Aggregator', shape='diamond', fillcolor='#F0FFF0', fontcolor='#1a1a1a', color='#90EE90', penwidth='2')
|
| 135 |
+
ml.node('MODELS', 'Classifiers\n(RF, SVM, LogReg, NN, KNN)', fillcolor='#F0FFF0', fontcolor='#1a1a1a', color='#90EE90', penwidth='2')
|
| 136 |
+
ml.node('SHAP', 'SHAP Explainer\nFeature Impact Analysis', fillcolor='#F0FFF0', fontcolor='#1a1a1a', color='#90EE90', penwidth='2')
|
| 137 |
|
| 138 |
# Hardware Export Subgraph
|
| 139 |
with graph.subgraph(name='cluster_edge') as edge:
|
| 140 |
+
edge.attr(label='Hardware & Edge AI Export', style='dashed', color='#777777', fontcolor='#cccccc')
|
| 141 |
+
edge.node('TRANS', 'C-Code Transpiler\nINT8 Quantization', fillcolor='#FFE4E1', fontcolor='#1a1a1a', color='#E9967A', penwidth='2')
|
| 142 |
+
edge.node('HEADER', 'tinyml_model.h\nOptimized Header File', shape='note', fillcolor='#FFE4E1', fontcolor='#1a1a1a', color='#E9967A', penwidth='2')
|
| 143 |
+
edge.node('MCU', 'ESP32 / ARM Cortex-M\nMicrocontroller Node', fillcolor='#FFE4E1', fontcolor='#1a1a1a', color='#E9967A', penwidth='2')
|
| 144 |
|
| 145 |
# Map Cross-cluster edges
|
| 146 |
graph.edge('API', 'ENS', label=' Predict', color='#cccccc', fontcolor='#cccccc')
|