Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from langchain.text_splitter import (
|
|
7 |
LABEL_TEXTSPLITTER = "LangChain's CharacterTextSplitter"
|
8 |
LABEL_RECURSIVE = "Langchain's RecursiveCharacterTextSplitter"
|
9 |
|
10 |
-
def extract_separators_from_string(
|
11 |
try:
|
12 |
separators = separators_str[1:-1].split(", ")
|
13 |
return [separator.replace('"', "").replace("'", "") for separator in separators]
|
|
|
7 |
LABEL_TEXTSPLITTER = "LangChain's CharacterTextSplitter"
|
8 |
LABEL_RECURSIVE = "Langchain's RecursiveCharacterTextSplitter"
|
9 |
|
10 |
+
def extract_separators_from_string(separators_str):
|
11 |
try:
|
12 |
separators = separators_str[1:-1].split(", ")
|
13 |
return [separator.replace('"', "").replace("'", "") for separator in separators]
|