fffiloni commited on
Commit
4a9ac6b
1 Parent(s): 4b82b7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -40,7 +40,8 @@ def bot(history):
40
  return history
41
 
42
  def infer(question, history):
43
- chat_history = history
 
44
  query = question
45
  result = qa({"question": query, "chat_history": chat_history})
46
  print(result)
 
40
  return history
41
 
42
  def infer(question, history):
43
+ print(history[-1])
44
+ chat_history = []
45
  query = question
46
  result = qa({"question": query, "chat_history": chat_history})
47
  print(result)