Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,18 +1,20 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from
|
| 3 |
|
| 4 |
agent = AgentCore()
|
| 5 |
|
| 6 |
def run_agent(prompt):
|
| 7 |
-
|
| 8 |
-
return response
|
| 9 |
|
| 10 |
iface = gr.Interface(
|
| 11 |
fn=run_agent,
|
| 12 |
-
inputs=
|
| 13 |
-
outputs=
|
| 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__":
|