Update app.py
Browse files
app.py
CHANGED
@@ -400,7 +400,7 @@ def chatbot_response(history,query):
|
|
400 |
message = HumanMessage(content=[{"type": "text", "text": query}])
|
401 |
|
402 |
# Invoke the model with the multimodal message
|
403 |
-
result = agent.invoke({'history':history,'input':message.
|
404 |
response = result['output']
|
405 |
intermediate_steps = result.get('intermediate_steps', [])
|
406 |
|
|
|
400 |
message = HumanMessage(content=[{"type": "text", "text": query}])
|
401 |
|
402 |
# Invoke the model with the multimodal message
|
403 |
+
result = agent.invoke({'history':history,'input':message.content},handle_parsing_errors=True)
|
404 |
response = result['output']
|
405 |
intermediate_steps = result.get('intermediate_steps', [])
|
406 |
|