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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -8
app.py CHANGED
@@ -14,13 +14,16 @@ if __name__ == "__main__":
14
 
15
  iface = gr.Interface(
16
  fn=interact,
17
- inputs=gr.Textbox(label="Enter message"),
18
- outputs=[
19
- gr.Textbox(label="Agent Response"),
20
- gr.Textbox(label="Memory Context")
21
- ],
22
- title="AgentOS - Prototype Kernel",
23
- description="Testing memory + orchestration core"
24
- )
 
 
 
25
 
26
  iface.launch()
 
14
 
15
  iface = gr.Interface(
16
  fn=interact,
17
+ if __name__ == "__main__":
18
+ agent = AgentCore()
19
+
20
+ while True:
21
+ prompt = input("You: ")
22
+ if prompt.lower() in ["exit", "quit"]:
23
+ print("Exiting Agent...")
24
+ break
25
+
26
+ response = agent.run(prompt)
27
+ print("Agent:", response)
28
 
29
  iface.launch()