Spaces:
Build error
Build error
| import gradio as gr | |
| from agentos_core import AgentCore | |
| from orchestrator import Orchestrator | |
| # Initialize your Agent | |
| agent = AgentCore() | |
| # Function to handle prompt input/output | |
| def run_agent(prompt): | |
| if not prompt or prompt.strip() == "": | |
| return "⚠️ Please enter a valid prompt." | |
| return agent.run(prompt) | |
| # Launch Gradio interface | |
| iface = gr.Interface( | |
| fn=run_agent, | |
| inputs=gr.Textbox(label="Enter Prompt"), | |
| outputs=gr.Textbox(label="Agent Output"), | |
| title="🧠 AgentOS MVP", | |
| description="Your self-learning AgentCore running with telemetry + memory." | |
| ) | |
| iface.launch() |