Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,8 @@ def bot(history):
|
|
40 |
return history
|
41 |
|
42 |
def infer(question, history):
|
43 |
-
|
|
|
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)
|