Spaces:
Sleeping
Sleeping
Download app.py from Kumardba224/Multiagent_AI_platform: direct link, hf CLI and curl.
- Browser
- Download file 1.54 kB
-
https://huggingface.co/spaces/Kumardba224/Multiagent_AI_platform/resolve/main/app.py
- Command line
-
hf download hf://spaces/Kumardba224/Multiagent_AI_platform/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Kumardba224/Multiagent_AI_platform/resolve/main/app.py
1.54 kB
| import streamlit as st | |
| from multi_agent_backend import ( | |
| run_multi_agent_system | |
| ) | |
| # ----------------------------------- | |
| # Page Config | |
| # ----------------------------------- | |
| st.set_page_config( | |
| page_title="Multi-Agent AI System", | |
| page_icon="π€", | |
| layout="wide" | |
| ) | |
| # ----------------------------------- | |
| # Title | |
| # ----------------------------------- | |
| st.title("π€ Day 8 - Multi-Agent AI System") | |
| st.markdown(""" | |
| This system uses: | |
| - π Research Agent | |
| - π Planner Agent | |
| - π Summary Agent | |
| - π― Coordinator Workflow | |
| """) | |
| # ----------------------------------- | |
| # User Input | |
| # ----------------------------------- | |
| query = st.text_area( | |
| "Enter your topic:", | |
| height=150 | |
| ) | |
| # ----------------------------------- | |
| # Run Button | |
| # ----------------------------------- | |
| if st.button("Run Multi-Agent System"): | |
| if query: | |
| with st.spinner("Agents working..."): | |
| results = run_multi_agent_system(query) | |
| # ----------------------------------- | |
| # Research Output | |
| # ----------------------------------- | |
| st.subheader("π Research Agent") | |
| st.write(results["research"]) | |
| # ----------------------------------- | |
| # Planner Output | |
| # ----------------------------------- | |
| st.subheader("π Planner Agent") | |
| st.write(results["plan"]) | |
| # ----------------------------------- | |
| # Summary Output | |
| # ----------------------------------- | |
| st.subheader("π Summary Agent") | |
| st.write(results["summary"]) |