Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -122,7 +122,7 @@ agent= AgentExecutor(agent=agent, tools=tools,memory=mem)
|
|
| 122 |
# ββββββββββββββββββββββββββββββ
|
| 123 |
def chat(message, history):
|
| 124 |
try:
|
| 125 |
-
response = agent.
|
| 126 |
except Exception as e:
|
| 127 |
response = f"β οΈ μ€λ₯: {e}"
|
| 128 |
history = history + [(message, response)]
|
|
|
|
| 122 |
# ββββββββββββββββββββββββββββββ
|
| 123 |
def chat(message, history):
|
| 124 |
try:
|
| 125 |
+
response = agent.invoke(message)
|
| 126 |
except Exception as e:
|
| 127 |
response = f"β οΈ μ€λ₯: {e}"
|
| 128 |
history = history + [(message, response)]
|