Spaces:
Running
Running
Update app.py
Browse files
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,
|
29 |
return (
|
30 |
gr.Textbox.update(visible=(split_selection==LABEL_RECURSIVE)),
|
31 |
-
chunk(text, slider_count, split_selection,
|
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):
|