Spaces:
Sleeping
Sleeping
created proxy pages to support streamlit struct
Browse files- pages/1_Data_And_Insights.py +20 -0
- pages/2_Ripeness_Classifier.py +17 -0
- pages/3_Simulation_Workflow.py +17 -0
- pages/4_Cause_Lists_And_Overrides.py +17 -0
- pages/6_Analytics_And_Reports.py +17 -0
pages/1_Data_And_Insights.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Streamlit page wrapper to expose existing page to Streamlit's pages system.
|
| 2 |
+
|
| 3 |
+
This wrapper runs the original implementation located under src/dashboard/pages.
|
| 4 |
+
"""
|
| 5 |
+
|
| 6 |
+
from __future__ import annotations
|
| 7 |
+
|
| 8 |
+
from pathlib import Path
|
| 9 |
+
import runpy
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
ORIG = (
|
| 13 |
+
Path(__file__).resolve().parents[1]
|
| 14 |
+
/ "src"
|
| 15 |
+
/ "dashboard"
|
| 16 |
+
/ "pages"
|
| 17 |
+
/ "1_Data_And_Insights.py"
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
runpy.run_path(str(ORIG), run_name="__main__")
|
pages/2_Ripeness_Classifier.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Wrapper to expose the ripeness classifier page to Streamlit's pages system."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
import runpy
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
ORIG = (
|
| 10 |
+
Path(__file__).resolve().parents[1]
|
| 11 |
+
/ "src"
|
| 12 |
+
/ "dashboard"
|
| 13 |
+
/ "pages"
|
| 14 |
+
/ "2_Ripeness_Classifier.py"
|
| 15 |
+
)
|
| 16 |
+
|
| 17 |
+
runpy.run_path(str(ORIG), run_name="__main__")
|
pages/3_Simulation_Workflow.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Wrapper to expose the simulation workflow page to Streamlit's pages system."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
import runpy
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
ORIG = (
|
| 10 |
+
Path(__file__).resolve().parents[1]
|
| 11 |
+
/ "src"
|
| 12 |
+
/ "dashboard"
|
| 13 |
+
/ "pages"
|
| 14 |
+
/ "3_Simulation_Workflow.py"
|
| 15 |
+
)
|
| 16 |
+
|
| 17 |
+
runpy.run_path(str(ORIG), run_name="__main__")
|
pages/4_Cause_Lists_And_Overrides.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Wrapper to expose the cause lists & overrides page to Streamlit's pages system."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
import runpy
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
ORIG = (
|
| 10 |
+
Path(__file__).resolve().parents[1]
|
| 11 |
+
/ "src"
|
| 12 |
+
/ "dashboard"
|
| 13 |
+
/ "pages"
|
| 14 |
+
/ "4_Cause_Lists_And_Overrides.py"
|
| 15 |
+
)
|
| 16 |
+
|
| 17 |
+
runpy.run_path(str(ORIG), run_name="__main__")
|
pages/6_Analytics_And_Reports.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Wrapper to expose the analytics & reports page to Streamlit's pages system."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
import runpy
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
ORIG = (
|
| 10 |
+
Path(__file__).resolve().parents[1]
|
| 11 |
+
/ "src"
|
| 12 |
+
/ "dashboard"
|
| 13 |
+
/ "pages"
|
| 14 |
+
/ "6_Analytics_And_Reports.py"
|
| 15 |
+
)
|
| 16 |
+
|
| 17 |
+
runpy.run_path(str(ORIG), run_name="__main__")
|