Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,13 +14,16 @@ if __name__ == "__main__":
|
|
| 14 |
|
| 15 |
iface = gr.Interface(
|
| 16 |
fn=interact,
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 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()
|