Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def read_and_textify_advanced(files, chunk_size):
|
|
28 |
if text:
|
29 |
# Split text into chunks of approximately 'chunk_size' words
|
30 |
words = text.split(".")
|
31 |
-
for j in range(0, len(words),
|
32 |
# Get the chunk of text from j-chunk_size to j+chunk_size
|
33 |
# start = max(0, j - chunk_size)
|
34 |
# end = min(len(words), j + chunk_size + 1)
|
|
|
28 |
if text:
|
29 |
# Split text into chunks of approximately 'chunk_size' words
|
30 |
words = text.split(".")
|
31 |
+
for j in range(0, len(words), chunk_size):
|
32 |
# Get the chunk of text from j-chunk_size to j+chunk_size
|
33 |
# start = max(0, j - chunk_size)
|
34 |
# end = min(len(words), j + chunk_size + 1)
|