Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ import CharacterTextSplitter
|
|
| 10 |
from htmltemplates import css, bot_template, user_template
|
| 11 |
|
| 12 |
def get_text_chunks(text):
|
| 13 |
-
text_splitter =
|
| 14 |
separator="\n",
|
| 15 |
chunk_size=1000, chunk_overlap=200,
|
| 16 |
length_function=len
|
|
|
|
| 10 |
from htmltemplates import css, bot_template, user_template
|
| 11 |
|
| 12 |
def get_text_chunks(text):
|
| 13 |
+
text_splitter = TokenTextSplitter(
|
| 14 |
separator="\n",
|
| 15 |
chunk_size=1000, chunk_overlap=200,
|
| 16 |
length_function=len
|