Spaces:
Running
Running
Aymeric Roucher
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -57,8 +57,7 @@ def chunk(text, words, splitter_selection):
|
|
57 |
splits = text_splitter.create_documents([text])
|
58 |
text_splits = [split.page_content for split in splits]
|
59 |
|
60 |
-
|
61 |
-
output = [(split, str(i)) for i, split in enumerate(text_splits)]
|
62 |
return output
|
63 |
|
64 |
|
|
|
57 |
splits = text_splitter.create_documents([text])
|
58 |
text_splits = [split.page_content for split in splits]
|
59 |
|
60 |
+
output = [(split, str(i)) for i, split in enumerate(text_splits)]
|
|
|
61 |
return output
|
62 |
|
63 |
|