Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def load_file():
|
|
31 |
######################################
|
32 |
def get_text_chunks(text:str) ->list:
|
33 |
text_splitter = CharacterTextSplitter(
|
34 |
-
separator="\n", chunk_size=
|
35 |
)
|
36 |
chunks = text_splitter.split_text(text)
|
37 |
return chunks
|
|
|
31 |
######################################
|
32 |
def get_text_chunks(text:str) ->list:
|
33 |
text_splitter = CharacterTextSplitter(
|
34 |
+
separator="\n", chunk_size=400, chunk_overlap=40, length_function=len
|
35 |
)
|
36 |
chunks = text_splitter.split_text(text)
|
37 |
return chunks
|