Spaces:
Sleeping
Sleeping
dinhquangson
commited on
Commit
•
dbddfaf
1
Parent(s):
a239cfc
Update app.py
Browse files
app.py
CHANGED
@@ -146,7 +146,7 @@ async def create_upload_file(text_field: str, file: UploadFile = File(...), ocr:
|
|
146 |
|
147 |
document_cleaner = DocumentCleaner()
|
148 |
|
149 |
-
document_splitter = DocumentSplitter(split_by="
|
150 |
|
151 |
indexing.add_component("document_joiner", document_joiner)
|
152 |
indexing.add_component("document_cleaner", document_cleaner)
|
|
|
146 |
|
147 |
document_cleaner = DocumentCleaner()
|
148 |
|
149 |
+
document_splitter = DocumentSplitter(split_by="passage", split_length=1000, split_overlap=0)
|
150 |
|
151 |
indexing.add_component("document_joiner", document_joiner)
|
152 |
indexing.add_component("document_cleaner", document_cleaner)
|