Tpayne101 commited on
Commit
5306743
·
verified ·
1 Parent(s): 62bfe88

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -0
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)