momegas commited on
Commit
9b48ac2
1 Parent(s): 5d85d0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ PROMPT = PromptTemplate(
36
  template=prompt_template, input_variables=["context", "question"]
37
  )
38
 
39
- loader = DirectoryLoader("./documents", glob="**/*.pdf", show_progress=True)
40
  docs = loader.load()
41
  text_splitter = RecursiveCharacterTextSplitter(chunk_size=500, chunk_overlap=0)
42
  texts = text_splitter.split_documents(docs)
 
36
  template=prompt_template, input_variables=["context", "question"]
37
  )
38
 
39
+ loader = DirectoryLoader("./documents", glob="**/*.txt", show_progress=True)
40
  docs = loader.load()
41
  text_splitter = RecursiveCharacterTextSplitter(chunk_size=500, chunk_overlap=0)
42
  texts = text_splitter.split_documents(docs)