Spaces:
Sleeping
Sleeping
Update app.py
Browse filesfixed agent.run()
app.py
CHANGED
|
@@ -73,7 +73,7 @@ async def ask_advisor(user_message, history):
|
|
| 73 |
try:
|
| 74 |
# Execute the agent workflow
|
| 75 |
# The 'ctx' argument passes the memory of previous interactions
|
| 76 |
-
response = await agent.run(
|
| 77 |
|
| 78 |
# Return the final text response
|
| 79 |
return str(response)
|
|
|
|
| 73 |
try:
|
| 74 |
# Execute the agent workflow
|
| 75 |
# The 'ctx' argument passes the memory of previous interactions
|
| 76 |
+
response = await agent.run(user_msg=user_message, ctx=global_ctx)
|
| 77 |
|
| 78 |
# Return the final text response
|
| 79 |
return str(response)
|