samim2024 commited on
Commit
2add24a
·
verified ·
1 Parent(s): cd183a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -80,7 +80,7 @@ def create_langchain_index(input_text):
80
 
81
 
82
  @st.cache_data
83
- def get_response(input_text,query,db):
84
  print(f"--querying---{query}")
85
  retrieval_chain = RetrievalQA.from_chain_type(llm, chain_type="stuff", retriever=db.as_retriever())
86
  response = retrieval_chain.run(query)
 
80
 
81
 
82
  @st.cache_data
83
+ def get_response(input_text,query,_db):
84
  print(f"--querying---{query}")
85
  retrieval_chain = RetrievalQA.from_chain_type(llm, chain_type="stuff", retriever=db.as_retriever())
86
  response = retrieval_chain.run(query)