Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ preprocessor = PreProcessor(
|
|
14 |
|
15 |
|
16 |
def chunk(text, length, splitter_selection):
|
17 |
-
|
18 |
text_splitter = CharacterTextSplitter(
|
19 |
separator="",
|
20 |
chunk_size=words,
|
|
|
14 |
|
15 |
|
16 |
def chunk(text, length, splitter_selection):
|
17 |
+
if splitter_selection == "LangChain's CharacterTextSplitter":
|
18 |
text_splitter = CharacterTextSplitter(
|
19 |
separator="",
|
20 |
chunk_size=words,
|