Update app.py
Browse files
app.py
CHANGED
|
@@ -103,11 +103,7 @@ 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 =
|
| 107 |
-
encoding="c1100k_base",
|
| 108 |
-
chunk_size=512,
|
| 109 |
-
chunk_overlap=0
|
| 110 |
-
)
|
| 111 |
|
| 112 |
final_items = []
|
| 113 |
directory_path = os.path.dirname(os.path.abspath(antimony_file_path))
|
|
|
|
| 103 |
print(f"Error converting SBML to Antimony: {e}")
|
| 104 |
|
| 105 |
def split_biomodels(antimony_file_path):
|
| 106 |
+
text_splitter = SpacyTextSplitter(chunk_size=1000)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
|
| 108 |
final_items = []
|
| 109 |
directory_path = os.path.dirname(os.path.abspath(antimony_file_path))
|