Spaces:
Sleeping
Sleeping
| import streamlit as st | |
| from components.chat_ui import render_chat | |
| from components.dashboard_ui import render_dashboard | |
| # Set the wide layout for a more professional dashboard look | |
| st.set_page_config(page_title="MindGuard AI", page_icon="π‘οΈ", layout="wide") | |
| # Sidebar Navigation | |
| st.sidebar.title("π‘οΈ MindGuard AI") | |
| st.sidebar.markdown("Welcome to the control panel.") | |
| # Create radio buttons to act as tabs | |
| page = st.sidebar.radio("Navigation", ["π¬ Chat Companion", "π Clinical Dashboard"]) | |
| # Route the user to the correct component based on their selection | |
| if page == "π¬ Chat Companion": | |
| render_chat() | |
| elif page == "π Clinical Dashboard": | |
| render_dashboard() |