Vidhi00 commited on
Commit
6ce6d7e
·
verified ·
1 Parent(s): ad2a6fd

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -540,7 +540,7 @@ def chatbot_interface():
540
 
541
  try:
542
  # Pass the history to the agent
543
- response = agent_executor.run({"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})
 
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})