Spaces:
Sleeping
Sleeping
adding new files
Browse files- .DS_Store +0 -0
- app.py +2 -2
- data/.DS_Store +0 -0
- data/paul_graham_essays.txt → paul_graham_essays.txt +0 -0
.DS_Store
CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
|
|
app.py
CHANGED
@@ -37,7 +37,7 @@ HF_TOKEN = os.environ["HF_TOKEN"]
|
|
37 |
3. Load HuggingFace Embeddings (remember to use the URL we set above)
|
38 |
4. Index Files if they do not exist, otherwise load the vectorstore
|
39 |
"""
|
40 |
-
document_loader = TextLoader("
|
41 |
documents = document_loader.load()
|
42 |
|
43 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=30)
|
@@ -152,4 +152,4 @@ async def main(message: cl.Message):
|
|
152 |
):
|
153 |
await msg.stream_token(chunk)
|
154 |
|
155 |
-
await msg.send()
|
|
|
37 |
3. Load HuggingFace Embeddings (remember to use the URL we set above)
|
38 |
4. Index Files if they do not exist, otherwise load the vectorstore
|
39 |
"""
|
40 |
+
document_loader = TextLoader("paul_graham_essays.txt")
|
41 |
documents = document_loader.load()
|
42 |
|
43 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=30)
|
|
|
152 |
):
|
153 |
await msg.stream_token(chunk)
|
154 |
|
155 |
+
await msg.send()
|
data/.DS_Store
DELETED
Binary file (6.15 kB)
|
|
data/paul_graham_essays.txt → paul_graham_essays.txt
RENAMED
File without changes
|