()
| 73 | """, unsafe_allow_html=True) |
| 74 | |
| 75 | def main(): |
| 76 | if 'current_page' not in st.session_state: |
| 77 | st.session_state.current_page = 'dashboard' |
| 78 | df, data_type = load_and_cache_data() |
| 79 | |
| 80 | if data_type == "real": |
| 81 | st.success("Successfully loaded NHS prescription data") |
| 82 | else: |
| 83 | st.warning("csv not found. Using sample data for demonstration.") |
| 84 | |
| 85 | create_nav() |
| 86 | create_sidebar() |
| 87 | route_to_page(df) |
| 88 | |
| 89 | def create_nav(): |
| 90 | pages = { |
no test coverage detected