Spaces:
Running
Running
app19
Browse files
app.py
CHANGED
@@ -122,8 +122,8 @@ qa_chain = ConversationalRetrievalChain.from_llm(
|
|
122 |
output_key = 'output',
|
123 |
)
|
124 |
|
125 |
-
def chat_interface(
|
126 |
-
result = qa_chain.invoke({'query':
|
127 |
output_string = result['output']
|
128 |
|
129 |
# Find the index of the last occurrence of "answer": in the string
|
|
|
122 |
output_key = 'output',
|
123 |
)
|
124 |
|
125 |
+
def chat_interface(query,history):
|
126 |
+
result = qa_chain.invoke({'query': query})
|
127 |
output_string = result['output']
|
128 |
|
129 |
# Find the index of the last occurrence of "answer": in the string
|