AgentOS-MVP / app.py
Tpayne101's picture
Update app.py
b705c96 verified
raw
history blame contribute delete
612 Bytes
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()