Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -540,7 +540,7 @@ def chatbot_interface():
|
|
| 540 |
|
| 541 |
try:
|
| 542 |
# Pass the history to the agent
|
| 543 |
-
response = agent_executor.
|
| 544 |
# Add the chatbot's response to the history
|
| 545 |
chatbot_response = response['output']
|
| 546 |
st.session_state.conversation_history.append({"role": "assistant", "content": chatbot_response})
|
|
|
|
| 540 |
|
| 541 |
try:
|
| 542 |
# Pass the history to the agent
|
| 543 |
+
response = agent_executor.invoke({"input": conversation_input})
|
| 544 |
# Add the chatbot's response to the history
|
| 545 |
chatbot_response = response['output']
|
| 546 |
st.session_state.conversation_history.append({"role": "assistant", "content": chatbot_response})
|