Spaces:
Sleeping
Sleeping
Commit
·
2968e66
1
Parent(s):
fdcda98
adding chatbot
Browse files
app.py
CHANGED
@@ -107,8 +107,7 @@ def infer(question, history):
|
|
107 |
res.append(pair)
|
108 |
|
109 |
chat_history = res
|
110 |
-
|
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):
|