Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ def main():
|
|
105 |
text.extend(loader.load())
|
106 |
os.remove(temp_file_path)
|
107 |
|
108 |
-
text_splitter = CharacterTextSplitter(separator="\n", chunk_size=
|
109 |
text_chunks = text_splitter.split_documents(text)
|
110 |
|
111 |
# Create embeddings
|
|
|
105 |
text.extend(loader.load())
|
106 |
os.remove(temp_file_path)
|
107 |
|
108 |
+
text_splitter = CharacterTextSplitter(separator="\n", chunk_size=1000, chunk_overlap=100, length_function=len)
|
109 |
text_chunks = text_splitter.split_documents(text)
|
110 |
|
111 |
# Create embeddings
|