Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ def infer(question, history):
|
|
| 46 |
for human, ai in history:
|
| 47 |
res.append(f"Human:{human}\nAI:{ai}")
|
| 48 |
"\n".join(res)
|
| 49 |
-
chat_history = res
|
| 50 |
print(chat_history)
|
| 51 |
query = question
|
| 52 |
result = qa({"question": query, "chat_history": chat_history})
|
|
|
|
| 46 |
for human, ai in history:
|
| 47 |
res.append(f"Human:{human}\nAI:{ai}")
|
| 48 |
"\n".join(res)
|
| 49 |
+
chat_history = res[0]
|
| 50 |
print(chat_history)
|
| 51 |
query = question
|
| 52 |
result = qa({"question": query, "chat_history": chat_history})
|