Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def pdf_to_text(path, start_page=1, end_page=None):
|
|
37 |
return text_list
|
38 |
|
39 |
|
40 |
-
def text_to_chunks(texts, word_length=
|
41 |
text_toks = [t.split(' ') for t in texts]
|
42 |
page_nums = []
|
43 |
chunks = []
|
|
|
37 |
return text_list
|
38 |
|
39 |
|
40 |
+
def text_to_chunks(texts, word_length=200, start_page=1):
|
41 |
text_toks = [t.split(' ') for t in texts]
|
42 |
page_nums = []
|
43 |
chunks = []
|