m-ric HF staff commited on
Commit
1b3d905
β€’
1 Parent(s): c38e426

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,7 +43,7 @@ def chunk(text, length, splitter_selection, separators_str, length_unit_selectio
43
  length_function=length_function,
44
  strip_whitespace=False,
45
  is_separator_regex=False,
46
- separator="",
47
  )
48
  elif splitter_selection == LABEL_RECURSIVE:
49
  text_splitter = RecursiveCharacterTextSplitter(
@@ -118,7 +118,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css="#textbox_id {color: red; font-samily
118
  )
119
  separator_selection = gr.Textbox(
120
  elem_id="textbox_id",
121
- value=["\n### ", "\n\n", "\n", ".", " ", ""],
122
  info="Separators used in RecursiveCharacterTextSplitter",
123
  show_label=False, # or set label to an empty string if you want to keep its space
124
  visible=False,
 
43
  length_function=length_function,
44
  strip_whitespace=False,
45
  is_separator_regex=False,
46
+ separator=" ",
47
  )
48
  elif splitter_selection == LABEL_RECURSIVE:
49
  text_splitter = RecursiveCharacterTextSplitter(
 
118
  )
119
  separator_selection = gr.Textbox(
120
  elem_id="textbox_id",
121
+ value=["\n### ", "\n\n", "\n", ".", " "],
122
  info="Separators used in RecursiveCharacterTextSplitter",
123
  show_label=False, # or set label to an empty string if you want to keep its space
124
  visible=False,