Samarth991 commited on
Commit
2968e66
1 Parent(s): fdcda98

adding chatbot

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -107,8 +107,7 @@ def infer(question, history):
107
  res.append(pair)
108
 
109
  chat_history = res
110
- query = question
111
- result = qa({"question": query, "chat_history": chat_history})
112
  return result["answer"]
113
 
114
  def bot(history):
 
107
  res.append(pair)
108
 
109
  chat_history = res
110
+ result = qa({"query": question})
 
111
  return result["answer"]
112
 
113
  def bot(history):