arslan-ahmed commited on
Commit
bc5f23a
1 Parent(s): 616ad28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -192,7 +192,7 @@ def updateQaChain(temp, k, modelNameDD, stdlQs, api_key_st, vsDict_st):
192
 
193
 
194
  def respond(message, chat_history, qa_chain):
195
- result = qa_chain({'question': message, "chat_history": [tuple(x) for x in chat_history[1:]]})
196
  src_docs = getSourcesFromMetadata([x.metadata for x in result["source_documents"]], sourceOnly=False)[0]
197
  # streaming
198
  streaming_answer = ""
 
192
 
193
 
194
  def respond(message, chat_history, qa_chain):
195
+ result = qa_chain({'question': message, "chat_history": [tuple(x) for x in chat_history]})
196
  src_docs = getSourcesFromMetadata([x.metadata for x in result["source_documents"]], sourceOnly=False)[0]
197
  # streaming
198
  streaming_answer = ""