Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
from agentos_core import AgentCore
|
| 3 |
+
|
| 4 |
+
agent = AgentCore()
|
| 5 |
+
|
| 6 |
+
def interact(prompt):
|
| 7 |
+
response = agent.process(prompt)
|
| 8 |
+
return response
|
| 9 |
+
|
| 10 |
+
iface = gr.Interface(
|
| 11 |
+
fn=interact,
|
| 12 |
+
inputs="text",
|
| 13 |
+
outputs="text",
|
| 14 |
+
title="AgentOS MVP",
|
| 15 |
+
description="Your self-learning AgentCore with memory + telemetry + orchestration.",
|
| 16 |
+
)
|
| 17 |
+
|
| 18 |
+
if __name__ == "__main__":
|
| 19 |
+
iface.launch(server_name="0.0.0.0", server_port=7860, share=False)
|