Skip to content

Commit 70aee2d

Browse files
docs: sync About page with current architecture and time zone logic
1 parent d4479a2 commit 70aee2d

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

frontend/pages/6_About.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,15 @@
5353
graph = graphviz.Digraph(node_attr={'shape': 'box', 'style': 'rounded,filled', 'fontname': 'Helvetica', 'margin': '0.2'}, graph_attr={'rankdir': 'TB', 'splines': 'ortho', 'nodesep': '0.8'})
5454

5555
# Define UI & API nodes at the top
56-
graph.node('UI', '🖥️ Streamlit Frontend\nInteractive Dashboard', fillcolor='#ff4b4b', fontcolor='white', color='#a30000', penwidth='2')
57-
graph.node('API', '⚙️ FastAPI Backend\nRouting & API Logic', fillcolor='#009688', fontcolor='white', color='#004d40', penwidth='2')
58-
graph.node('DB', '🗄️ SQLite DB\nPatient History', shape='cylinder', fillcolor='#9b59b6', fontcolor='white', color='#4a235a', penwidth='2')
56+
graph.node('UI', '🖥️ Streamlit Frontend\nInteractive Dashboard (IST)', fillcolor='#ff4b4b', fontcolor='white', color='#a30000', penwidth='2')
57+
graph.node('API', '⚙️ FastAPI Backend\nInternal Routing (UTC)', fillcolor='#009688', fontcolor='white', color='#004d40', penwidth='2')
58+
graph.node('HUB', '🤗 HF Hub Dataset\nCentralized History Store', shape='folder', fillcolor='#ffcc00', fontcolor='black', color='#d4a017', penwidth='2')
59+
graph.node('DB', '🗄️ SQLite DB\nLocal Instance Cache', shape='cylinder', fillcolor='#9b59b6', fontcolor='white', color='#4a235a', penwidth='2')
5960

6061
# Core connections
61-
graph.edge('UI', 'API', label=' REST JSON', color='#666666', fontcolor='#666666')
62+
graph.edge('UI', 'API', label=' internal localhost:8000', color='#666666', fontcolor='#666666')
6263
graph.edge('API', 'DB', label=' Read/Write', color='#666666', fontcolor='#666666')
64+
graph.edge('API', 'HUB', label=' HfApi Sync (Persistent)', color='#666666', fontcolor='#666666')
6365

6466
# Machine Learning Subgraph
6567
with graph.subgraph(name='cluster_ml') as ml:
@@ -107,8 +109,9 @@
107109

108110
with col2:
109111
st.warning("""
110-
**🔍 SHAP Clinical Explainability**\n
111-
In the medical space, a black-box model is often untrusted. The project leverages SHapley Additive exPlanations (**SHAP**) natively connected to the Random Forest model layer. SHAP assigns absolute baseline impact scores to every incoming feature, interpreting *why* the AI predicted a specific condition and quantifying mathematically whether individual factors act as risk vectors or protective measures.
112+
**🔍 Data Synchronization & Localization**\n
113+
To support a distributed architecture, the system centralizes its **Patient History** on the Hugging Face Hub as a persistent storage layer.
114+
The platform is fully time-zone aware: while the **Backend API** operates on a robust **UTC** standard for data integrity, the **Frontend Dashboard** automatically localizes all telemetry and history logs to **IST (Indian Standard Time, UTC+5:30)**.
112115
""")
113116

114117
st.error("""

0 commit comments

Comments
 (0)