Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ HF_TOKEN = os.getenv('HF_Token')
|
|
27 |
def create_vector_db():
|
28 |
|
29 |
loader = DirectoryLoader(DATA_PATH, glob='*.md', loader_cls=TextLoader, show_progress=True)
|
30 |
-
|
31 |
|
32 |
# split the document into chunks
|
33 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=256, chunk_overlap=50)
|
|
|
27 |
def create_vector_db():
|
28 |
|
29 |
loader = DirectoryLoader(DATA_PATH, glob='*.md', loader_cls=TextLoader, show_progress=True)
|
30 |
+
document =loader.load()
|
31 |
|
32 |
# split the document into chunks
|
33 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=256, chunk_overlap=50)
|