Update app.py
Browse files
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 |
-
|
| 108 |
-
chunk_size=
|
| 109 |
-
chunk_overlap=
|
| 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 = []
|