fffiloni commited on
Commit
365fff6
·
1 Parent(s): 37e534a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def infer(question, history):
46
  for human, ai in history:
47
  res.append(f"Human:{human}\nAI:{ai}")
48
  "\n".join(res)
49
- chat_history = res
50
  print(chat_history)
51
  query = question
52
  result = qa({"question": query, "chat_history": chat_history})
 
46
  for human, ai in history:
47
  res.append(f"Human:{human}\nAI:{ai}")
48
  "\n".join(res)
49
+ chat_history = res[0]
50
  print(chat_history)
51
  query = question
52
  result = qa({"question": query, "chat_history": chat_history})