Chandranshu Jain commited on
Commit
45377d4
1 Parent(s): f18b3d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -57,9 +57,9 @@ def get_pdf(pdf_docs,query):
57
  embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
58
  vector = Chroma.from_documents(chunk, embeddings)
59
  docs = db3.similarity_search(query)
60
- chain = get_conversational_chain()
61
- response = chain({"input_documents": docs, "question": query}, return_only_outputs=True)
62
- return response
63
  #st.write("Reply: ", response["output_text"])
64
 
65
  def main():
 
57
  embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
58
  vector = Chroma.from_documents(chunk, embeddings)
59
  docs = db3.similarity_search(query)
60
+ chain = get_conversational_chain()
61
+ response = chain({"input_documents": docs, "question": query}, return_only_outputs=True)
62
+ return response
63
  #st.write("Reply: ", response["output_text"])
64
 
65
  def main():