Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|