TheBobBob commited on
Commit
db6fd95
·
verified ·
1 Parent(s): 9d3d84a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -103,12 +103,10 @@ def convert_sbml_to_antimony(sbml_file_path, antimony_file_path):
103
  print(f"Error converting SBML to Antimony: {e}")
104
 
105
  def split_biomodels(antimony_file_path):
106
- text_splitter = CharacterTextSplitter(
107
- separator=" // ",
108
- chunk_size=1000,
109
- chunk_overlap=20,
110
- length_function=len,
111
- is_separator_regex=False
112
  )
113
 
114
  final_items = []
 
103
  print(f"Error converting SBML to Antimony: {e}")
104
 
105
  def split_biomodels(antimony_file_path):
106
+ text_splitter = CharacterTextSplitter.from_tiktoken_encoder(
107
+ encoding="c1100k_base",
108
+ chunk_size=512,
109
+ chunk_overlap=0
 
 
110
  )
111
 
112
  final_items = []