Manglik-R commited on
Commit
f1b3489
·
1 Parent(s): 1e56831

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -57,7 +57,8 @@ def bot(history):
57
  return history
58
 
59
  def infer(question , history):
60
- result = qa({'question': question , 'chat_history': history})
 
61
  return result
62
 
63
  css="""
 
57
  return history
58
 
59
  def infer(question , history):
60
+ hist = history[:-1]
61
+ result = qa({'question': question , 'chat_history': hist})
62
  return result
63
 
64
  css="""