Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def change_split_selection(text, slider_count, split_selection, separator_select
|
|
30 |
|
31 |
def chunk(text, length, splitter_selection, separators_str, length_unit_selection):
|
32 |
separators = extract_separators_from_string(separators_str)
|
33 |
-
|
34 |
if splitter_selection == LABEL_TEXTSPLITTER:
|
35 |
if "token" in length_unit_selection.lower():
|
36 |
text_splitter = CharacterTextSplitter.from_huggingface_tokenizer(
|
|
|
30 |
|
31 |
def chunk(text, length, splitter_selection, separators_str, length_unit_selection):
|
32 |
separators = extract_separators_from_string(separators_str)
|
33 |
+
print(splitter_selection, length_unit_selection.lower())
|
34 |
if splitter_selection == LABEL_TEXTSPLITTER:
|
35 |
if "token" in length_unit_selection.lower():
|
36 |
text_splitter = CharacterTextSplitter.from_huggingface_tokenizer(
|