Update app.py
Browse files
app.py
CHANGED
@@ -407,7 +407,7 @@ def chatbot_response(history,query):
|
|
407 |
message = HumanMessage(content=[{"type": "text", "text": query}])
|
408 |
|
409 |
# Invoke the model with the multimodal message
|
410 |
-
result = agent.invoke({'
|
411 |
response = result['output']
|
412 |
intermediate_steps = result.get('intermediate_steps', [])
|
413 |
|
|
|
407 |
message = HumanMessage(content=[{"type": "text", "text": query}])
|
408 |
|
409 |
# Invoke the model with the multimodal message
|
410 |
+
result = agent.invoke({'input':message.content},handle_parsing_errors=True)
|
411 |
response = result['output']
|
412 |
intermediate_steps = result.get('intermediate_steps', [])
|
413 |
|