Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from langchain.text_splitter import (
|
|
6 |
|
7 |
|
8 |
def chunk(text, length, splitter_selection, separators_str):
|
9 |
-
separators = separators_str[1:-1].split(", ")
|
10 |
if splitter_selection == "LangChain's CharacterTextSplitter":
|
11 |
text_splitter = CharacterTextSplitter(
|
12 |
separator="",
|
|
|
6 |
|
7 |
|
8 |
def chunk(text, length, splitter_selection, separators_str):
|
9 |
+
separators = separators_str[1:-1].split(", ").replace('"', "").replace("'", "")
|
10 |
if splitter_selection == "LangChain's CharacterTextSplitter":
|
11 |
text_splitter = CharacterTextSplitter(
|
12 |
separator="",
|