Qazi-Mudassar-Ilyas commited on
Commit
f4e3a75
1 Parent(s): 08247e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -75,7 +75,6 @@ def chat(qa_chain,msg,history):
75
  response = qa_chain.invoke({"question": msg, "chat_history": formatted_chat_history})
76
  response_answer = response["answer"]
77
  response_sources=response["source_documents"]
78
- print (response_sources[0])
79
  response_source1= response_sources[0].metadata["filename"]
80
  response_source_sheet= response_sources[0].metadata["page_name"]
81
  new_history = history + [(msg, response_answer)]
 
75
  response = qa_chain.invoke({"question": msg, "chat_history": formatted_chat_history})
76
  response_answer = response["answer"]
77
  response_sources=response["source_documents"]
 
78
  response_source1= response_sources[0].metadata["filename"]
79
  response_source_sheet= response_sources[0].metadata["page_name"]
80
  new_history = history + [(msg, response_answer)]