nickmuchi commited on
Commit
61d5ed8
·
1 Parent(s): 78c0489

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -124,11 +124,12 @@ def load_chain():
124
 
125
  return qa
126
 
127
- chat_history = []
128
 
129
  def get_answer(question):
130
  '''Generate an answer from the chain'''
131
-
 
 
132
  chain = load_chain()
133
  result = chain({"question": question, "chat_history": chat_history})
134
 
 
124
 
125
  return qa
126
 
 
127
 
128
  def get_answer(question):
129
  '''Generate an answer from the chain'''
130
+
131
+ chat_history = []
132
+
133
  chain = load_chain()
134
  result = chain({"question": question, "chat_history": chat_history})
135