IDKHowToCodeFr commited on
Commit
701d743
·
verified ·
1 Parent(s): c7fe10a

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. 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.03) !important;
75
- border: 1px solid rgba(255, 255, 255, 0.05) !important;
76
  border-radius: 15px !important;
77
- backdrop-filter: blur(10px);
 
 
 
 
 
 
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', '🖥️ Streamlit Frontend\nInteractive Dashboard (IST)', fillcolor='#ff4b4b', fontcolor='white', color='#a30000', penwidth='2')
116
- graph.node('API', '⚙️ FastAPI Backend\nInternal Routing (UTC)', fillcolor='#009688', fontcolor='white', color='#004d40', penwidth='2')
117
- graph.node('HUB', '🤗 HF Hub Dataset\nCentralized History Store', shape='folder', fillcolor='#ffcc00', fontcolor='#1a1a1a', color='#d4a017', penwidth='2')
118
- graph.node('DB', '🗄️ SQLite DB\nLocal Instance Cache', shape='cylinder', fillcolor='#9b59b6', fontcolor='white', color='#4a235a', penwidth='2')
119
 
120
  # Core connections
121
- graph.edge('UI', 'API', label=' internal localhost:8000', color='#888888', fontcolor='#888888')
122
- graph.edge('API', 'DB', label=' Read/Write', color='#888888', fontcolor='#888888')
123
- graph.edge('API', 'HUB', label=' HfApi Sync (Persistent)', color='#888888', fontcolor='#888888')
124
 
125
  # Machine Learning Subgraph
126
  with graph.subgraph(name='cluster_ml') as ml:
127
- ml.attr(label='🧠 Machine Learning & Inference Pipeline', style='dashed', color='#555555', fontcolor='#aaaaaa')
128
- ml.node('ENS', 'Ensemble Engine\nSoft-Voting Aggregator', shape='diamond', fillcolor='#f2c94c', fontcolor='#1a1a1a', color='#b28900', penwidth='2')
129
- ml.node('MODELS', 'Classifiers\n(RF, SVM, LogReg, NN, KNN)', fillcolor='#f2c94c', fontcolor='#1a1a1a', color='#b28900', penwidth='2')
130
- ml.node('SHAP', '🔍 SHAP Explainer\nFeature Impact Analysis', fillcolor='#f2c94c', fontcolor='#1a1a1a', color='#b28900', penwidth='2')
131
 
132
  # Hardware Export Subgraph
133
  with graph.subgraph(name='cluster_edge') as edge:
134
- edge.attr(label='⚡ Hardware & Edge AI Export', style='dashed', color='#555555', fontcolor='#aaaaaa')
135
- edge.node('TRANS', 'C-Code Transpiler\nINT8 Quantization', fillcolor='#2d9cdb', fontcolor='white', color='#106093', penwidth='2')
136
- edge.node('HEADER', 'tinyml_model.h\nOptimized Header File', shape='note', fillcolor='#2d9cdb', fontcolor='white', color='#106093', penwidth='2')
137
- edge.node('MCU', '📟 ESP32 / ARM Cortex-M\nMicrocontroller Node', fillcolor='#2d9cdb', fontcolor='white', color='#106093', penwidth='2')
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')