import streamlit as st import dotenv import os def main(): dotenv.load_dotenv(dotenv_path=os.path.join('.streamlit', '.env')) st.set_page_config(page_title="RAG Agent", page_icon="๐Ÿค–", layout="wide") audit_page = st.Page("audit_page/audit.py", title="Audit", icon="๐Ÿ“‹", default=True) kg_page = st.Page("audit_page/knowledge_graph.py", title="Graphe de connaissance", icon="๐Ÿง ") agents_page = st.Page("agents_page/catalogue.py", title="Catalogue des agents", icon="๐Ÿ“‡") compte_rendu = st.Page("audit_page/compte_rendu.py", title="Compte rendu", icon="๐Ÿ“") recommended_agents = st.Page("agents_page/recommended_agent.py", title="Agents recommandรฉs", icon="โญ") chatbot = st.Page("chatbot_page/chatbot.py", title="Chatbot", icon="๐Ÿ’ฌ") documentation = st.Page("doc_page/documentation.py", title="Documentation", icon="๐Ÿ“š") pg = st.navigation( { "Audit de contenus": [audit_page, compte_rendu, kg_page], "Equipe d'agents IA": [recommended_agents], "Chatbot": [chatbot], "Documentation": [documentation] } ) pg.run() if __name__ == "__main__": main()