Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files
frontend/pages/1_Predict_Dashboard.py
CHANGED
|
@@ -5,6 +5,8 @@ import plotly.graph_objects as go
|
|
| 5 |
|
| 6 |
st.set_page_config(page_title="Predict Patient Health", page_icon="๐ฉบ", layout="wide")
|
| 7 |
API_URL = os.getenv("API_URL", "http://localhost:8000")
|
|
|
|
|
|
|
| 8 |
|
| 9 |
st.title("๐ฉบ Patient Edge Prediction Simulation")
|
| 10 |
|
|
|
|
| 5 |
|
| 6 |
st.set_page_config(page_title="Predict Patient Health", page_icon="๐ฉบ", layout="wide")
|
| 7 |
API_URL = os.getenv("API_URL", "http://localhost:8000")
|
| 8 |
+
if "hf.space" in os.getenv("SPACE_ID", ""):
|
| 9 |
+
API_URL = "http://localhost:8000"
|
| 10 |
|
| 11 |
st.title("๐ฉบ Patient Edge Prediction Simulation")
|
| 12 |
|
frontend/pages/4_Patient_History.py
CHANGED
|
@@ -5,6 +5,8 @@ import os
|
|
| 5 |
|
| 6 |
st.set_page_config(page_title="Patient History", page_icon="๐๏ธ", layout="wide")
|
| 7 |
API_URL = os.getenv("API_URL", "http://localhost:8000")
|
|
|
|
|
|
|
| 8 |
|
| 9 |
st.title("๐๏ธ Patient Prediction History")
|
| 10 |
st.markdown("Live database of all patient predictions and vitals logged by the system. Auto-refreshes every 5 seconds.")
|
|
|
|
| 5 |
|
| 6 |
st.set_page_config(page_title="Patient History", page_icon="๐๏ธ", layout="wide")
|
| 7 |
API_URL = os.getenv("API_URL", "http://localhost:8000")
|
| 8 |
+
if "hf.space" in os.getenv("SPACE_ID", ""):
|
| 9 |
+
API_URL = "http://localhost:8000"
|
| 10 |
|
| 11 |
st.title("๐๏ธ Patient Prediction History")
|
| 12 |
st.markdown("Live database of all patient predictions and vitals logged by the system. Auto-refreshes every 5 seconds.")
|
frontend/pages/5_MLOps_Settings.py
CHANGED
|
@@ -4,6 +4,8 @@ import os
|
|
| 4 |
|
| 5 |
st.set_page_config(page_title="MLOps Settings", page_icon="๐", layout="wide")
|
| 6 |
API_URL = os.getenv("API_URL", "http://localhost:8000")
|
|
|
|
|
|
|
| 7 |
|
| 8 |
st.title("๐ MLOps & Retraining")
|
| 9 |
st.markdown("Dynamically update the TinyML ensemble models by providing a new dataset.")
|
|
|
|
| 4 |
|
| 5 |
st.set_page_config(page_title="MLOps Settings", page_icon="๐", layout="wide")
|
| 6 |
API_URL = os.getenv("API_URL", "http://localhost:8000")
|
| 7 |
+
if "hf.space" in os.getenv("SPACE_ID", ""):
|
| 8 |
+
API_URL = "http://localhost:8000"
|
| 9 |
|
| 10 |
st.title("๐ MLOps & Retraining")
|
| 11 |
st.markdown("Dynamically update the TinyML ensemble models by providing a new dataset.")
|