IDKHowToCodeFr commited on
Commit
d52805b
ยท
verified ยท
1 Parent(s): 50b29e5

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. frontend/pages/6_About.py +9 -6
frontend/pages/6_About.py CHANGED
@@ -53,13 +53,15 @@ st.markdown("### ๐Ÿ—๏ธ System Architecture")
53
  graph = graphviz.Digraph(node_attr={'shape': 'box', 'style': 'rounded,filled', 'fontname': 'Helvetica', 'margin': '0.2'}, graph_attr={'rankdir': 'TB', 'splines': 'ortho', 'nodesep': '0.8'})
54
 
55
  # 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')
 
59
 
60
  # Core connections
61
- graph.edge('UI', 'API', label=' REST JSON', color='#666666', fontcolor='#666666')
62
  graph.edge('API', 'DB', label=' Read/Write', color='#666666', fontcolor='#666666')
 
63
 
64
  # Machine Learning Subgraph
65
  with graph.subgraph(name='cluster_ml') as ml:
@@ -107,8 +109,9 @@ with col1:
107
 
108
  with col2:
109
  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
  """)
113
 
114
  st.error("""
 
53
  graph = graphviz.Digraph(node_attr={'shape': 'box', 'style': 'rounded,filled', 'fontname': 'Helvetica', 'margin': '0.2'}, graph_attr={'rankdir': 'TB', 'splines': 'ortho', 'nodesep': '0.8'})
54
 
55
  # Define UI & API nodes at the top
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')
60
 
61
  # Core connections
62
+ graph.edge('UI', 'API', label=' internal localhost:8000', color='#666666', fontcolor='#666666')
63
  graph.edge('API', 'DB', label=' Read/Write', color='#666666', fontcolor='#666666')
64
+ graph.edge('API', 'HUB', label=' HfApi Sync (Persistent)', color='#666666', fontcolor='#666666')
65
 
66
  # Machine Learning Subgraph
67
  with graph.subgraph(name='cluster_ml') as ml:
 
109
 
110
  with col2:
111
  st.warning("""
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)**.
115
  """)
116
 
117
  st.error("""