Tpayne101 commited on
Commit
7a0eefa
·
verified ·
1 Parent(s): fc8f673

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -1,11 +1,16 @@
1
  import gradio as gr
2
  from agentos_core import AgentCore
3
 
4
- agent = AgentCore()
 
 
5
 
6
- def interact(user_input):
7
- result = agent.run(user_input)
8
- return result["response"], result["memory_summary"]
 
 
 
9
 
10
  iface = gr.Interface(
11
  fn=interact,
 
1
  import gradio as gr
2
  from agentos_core import AgentCore
3
 
4
+ if __name__ == "__main__":
5
+ # Create your first agent instance
6
+ agent = AgentCore()
7
 
8
+ # Test prompt
9
+ test_prompt = "Hello Agent, summarize what you are."
10
+ response = agent.run(test_prompt)
11
+
12
+ print("=== Agent Output ===")
13
+ print(response)
14
 
15
  iface = gr.Interface(
16
  fn=interact,