m-ric HF staff commited on
Commit
a7f608a
1 Parent(s): e80eb77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,10 +25,10 @@ def extract_separators_from_string(separators_str):
25
  Please type it in the correct format: "['separator_1', 'separator_2', ...]"
26
  """)
27
 
28
- def change_split_selection(text, slider_count, split_selection, separator_selection, length_unit_selection, chunk_overlap):
29
  return (
30
  gr.Textbox.update(visible=(split_selection==LABEL_RECURSIVE)),
31
- chunk(text, slider_count, split_selection, separator_selection, length_unit_selection, chunk_overlap)
32
  )
33
 
34
  def chunk(text, length, splitter_selection, separators_str, length_unit_selection, chunk_overlap):
 
25
  Please type it in the correct format: "['separator_1', 'separator_2', ...]"
26
  """)
27
 
28
+ def change_split_selection(text, slider_count, split_selection, separators_selection, length_unit_selection, chunk_overlap):
29
  return (
30
  gr.Textbox.update(visible=(split_selection==LABEL_RECURSIVE)),
31
+ chunk(text, slider_count, split_selection, separators_selection, length_unit_selection, chunk_overlap)
32
  )
33
 
34
  def chunk(text, length, splitter_selection, separators_str, length_unit_selection, chunk_overlap):