Noobian commited on
Commit
5c3fb14
1 Parent(s): dad00e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ def pdf_to_text(pdf_file, query):
42
 
43
  index = VectorstoreIndexCreator(
44
  embedding=HuggingFaceEmbeddings(),
45
- text_splitter= text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0).from_loaders(loaders))
46
  #inference
47
  qa = VectorDBQA.from_chain_type(llm=llm, chain_type="stuff", vectorstore=vectorstore)
48
  from langchain.chains import RetrievalQA
 
42
 
43
  index = VectorstoreIndexCreator(
44
  embedding=HuggingFaceEmbeddings(),
45
+ text_splitter= CharacterTextSplitter(chunk_size=1000, chunk_overlap=0).from_loaders(loaders))
46
  #inference
47
  qa = VectorDBQA.from_chain_type(llm=llm, chain_type="stuff", vectorstore=vectorstore)
48
  from langchain.chains import RetrievalQA