Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,8 @@ HF_TOKEN = os.environ["HF_TOKEN"]
|
|
40 |
3. Load HuggingFace Embeddings (remember to use the URL we set above)
|
41 |
4. Index Files if they do not exist, otherwise load the vectorstore
|
42 |
"""
|
43 |
-
document_loader = TextLoader("./
|
|
|
44 |
documents = document_loader.load()
|
45 |
|
46 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=30)
|
|
|
40 |
3. Load HuggingFace Embeddings (remember to use the URL we set above)
|
41 |
4. Index Files if they do not exist, otherwise load the vectorstore
|
42 |
"""
|
43 |
+
document_loader = TextLoader("./paul_graham_essays.txt")
|
44 |
+
|
45 |
documents = document_loader.load()
|
46 |
|
47 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=30)
|