Tpayne101 commited on
Commit
9171b96
·
verified ·
1 Parent(s): 025301f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -1,18 +1,20 @@
1
  import gradio as gr
2
- from agentos_core_v2 import AgentCore
3
 
4
  agent = AgentCore()
5
 
6
  def run_agent(prompt):
7
- response = agent.run(prompt)
8
- return response
9
 
10
  iface = gr.Interface(
11
  fn=run_agent,
12
- inputs=gr.Textbox(label="Prompt"),
13
- outputs=gr.Textbox(label="Agent Output"),
14
  title="🧠 AgentOS MVP",
15
- description="Self-learning agent with memory + telemetry."
 
 
 
16
  )
17
 
18
  if __name__ == "__main__":
 
1
  import gradio as gr
2
+ from agentos_core_v3 import AgentCore # ⬅️ use v3
3
 
4
  agent = AgentCore()
5
 
6
  def run_agent(prompt):
7
+ return agent.run(prompt)
 
8
 
9
  iface = gr.Interface(
10
  fn=run_agent,
11
+ inputs="text",
12
+ outputs="text",
13
  title="🧠 AgentOS MVP",
14
+ description="Self-learning agent with vector memory + telemetry."
15
+ )
16
+
17
+ iface.launch()telemetry."
18
  )
19
 
20
  if __name__ == "__main__":