pracheeeeez commited on
Commit
ead2386
·
verified ·
1 Parent(s): b1ab565

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = CharacterTextSplitter(
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