Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files
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\
|
| 58 |
-
graph.node('
|
|
|
|
| 59 |
|
| 60 |
# Core connections
|
| 61 |
-
graph.edge('UI', 'API', label='
|
| 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 |
-
**๐
|
| 111 |
-
|
|
|
|
| 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("""
|