MindGuard-AI / app /main.py
MohitRajput45's picture
Deploying MindGuard AI v1.0
5603305
raw
history blame contribute delete
690 Bytes
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()