Spaces:
Running
Running
debug
Browse files
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))
|