ALVHB95 commited on
Commit
dd8b813
·
1 Parent(s): 83f5c6e
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,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
 
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