Tpayne101 commited on
Commit
39a7b5e
·
verified ·
1 Parent(s): dca87df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -26,4 +26,15 @@ iface = gr.Interface(
26
  response = agent.run(prompt)
27
  print("Agent:", response)
28
 
29
- iface.launch()
 
 
 
 
 
 
 
 
 
 
 
 
26
  response = agent.run(prompt)
27
  print("Agent:", response)
28
 
29
+ iface.launch()
30
+ if __name__ == "__main__":
31
+ agent = AgentCore()
32
+
33
+ while True:
34
+ prompt = input("You: ")
35
+ if prompt.lower() in ["exit", "quit"]:
36
+ print("Exiting Agent...")
37
+ break
38
+
39
+ response = agent.run(prompt)
40
+ print("Agent:", response)