ALVHB95 commited on
Commit
83f5c6e
·
1 Parent(s): 4083e28
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -122,8 +122,8 @@ qa_chain = ConversationalRetrievalChain.from_llm(
122
  output_key = 'output',
123
  )
124
 
125
- def chat_interface(question):
126
- result = qa_chain.invoke({'query': question, 'context': retriever})
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(question,history):
126
+ result = qa_chain.invoke({'query': question})
127
  output_string = result['output']
128
 
129
  # Find the index of the last occurrence of "answer": in the string