Spaces:
Running
Running
Commit
·
d5448bc
1
Parent(s):
c3e3be2
Remove debug print statement from respond function
Browse files
app.py
CHANGED
@@ -23,9 +23,10 @@ def respond(
|
|
23 |
HumanMessage(content=msg['content']))
|
24 |
elif msg['role'] == "assistant":
|
25 |
history_langchain_format.append(AIMessage(content=msg['content']))
|
|
|
26 |
history_langchain_format.append(HumanMessage(content=user_input))
|
|
|
27 |
response = model.invoke(history_langchain_format)
|
28 |
-
print(history_langchain_format)
|
29 |
return response.content
|
30 |
|
31 |
|
|
|
23 |
HumanMessage(content=msg['content']))
|
24 |
elif msg['role'] == "assistant":
|
25 |
history_langchain_format.append(AIMessage(content=msg['content']))
|
26 |
+
|
27 |
history_langchain_format.append(HumanMessage(content=user_input))
|
28 |
+
|
29 |
response = model.invoke(history_langchain_format)
|
|
|
30 |
return response.content
|
31 |
|
32 |
|