Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ PROMPT = PromptTemplate(
|
|
36 |
template=prompt_template, input_variables=["context", "question"]
|
37 |
)
|
38 |
|
39 |
-
loader = DirectoryLoader("./documents", glob="**/*.
|
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)
|