KvrParaskevi commited on
Commit
72739f1
1 Parent(s): db581a6

Update chatbot.py

Browse files
Files changed (1) hide show
  1. chatbot.py +1 -1
chatbot.py CHANGED
@@ -81,5 +81,5 @@ def demo_chain(input_text,history):
81
  chat_reply = conversation.invoke({
82
  "input" : input_text,
83
  "history" : history
84
- })
85
  return chat_reply['response'] #.split('AI:')[-1]
 
81
  chat_reply = conversation.invoke({
82
  "input" : input_text,
83
  "history" : history
84
+ }, return_only_outputs=True)
85
  return chat_reply['response'] #.split('AI:')[-1]