peterpeter8585 commited on
Commit
47adcab
·
verified ·
1 Parent(s): 2ec7f88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -231,6 +231,7 @@ def chat(message, history):
231
  for I in history:
232
  ab.append({"role":"user","content":I[0]})
233
  ab.append({"role":"assistant","content":I[1]})
 
234
  raw = agent.invoke(ab)["output"]
235
  try:
236
  # 대화 기록을 LangChain memory에 반영
 
231
  for I in history:
232
  ab.append({"role":"user","content":I[0]})
233
  ab.append({"role":"assistant","content":I[1]})
234
+ ab.append({"role":"user","content":message})
235
  raw = agent.invoke(ab)["output"]
236
  try:
237
  # 대화 기록을 LangChain memory에 반영