Spaces:
Build error
Build error
Update app.py
Browse files
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)
|