m-ric HF staff commited on
Commit
ad6564a
1 Parent(s): a3cc9a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ def chunk(text, length, splitter_selection, separators_str, length_unit_selectio
53
  if "token" in length_unit_selection.lower():
54
  text_splitter = RecursiveCharacterTextSplitter.from_huggingface_tokenizer(
55
  bert_tokenizer,
56
- chunk_size=chunk_size,
57
  chunk_overlap=0,
58
  add_start_index=True,
59
  strip_whitespace=False,
 
53
  if "token" in length_unit_selection.lower():
54
  text_splitter = RecursiveCharacterTextSplitter.from_huggingface_tokenizer(
55
  bert_tokenizer,
56
+ chunk_size=length,
57
  chunk_overlap=0,
58
  add_start_index=True,
59
  strip_whitespace=False,