sam522 commited on
Commit
acd05f3
·
1 Parent(s): 3f3cb4d
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ def predict(message, history):
75
  if msg['role'] == "user":
76
  history_langchain_format.append(HumanMessage(content=msg['content']))
77
  elif msg['role'] == "assistant":
78
- history_langchain_format.append(AIMessage(content=msg['content"]))
79
 
80
  # Add new user message
81
  history_langchain_format.append(HumanMessage(content=message))
 
75
  if msg['role'] == "user":
76
  history_langchain_format.append(HumanMessage(content=msg['content']))
77
  elif msg['role'] == "assistant":
78
+ history_langchain_format.append(AIMessage(content=msg['content']))
79
 
80
  # Add new user message
81
  history_langchain_format.append(HumanMessage(content=message))