m-ric HF staff commited on
Commit
4d61579
β€’
1 Parent(s): ff29008

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="",