Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def read_and_textify_advanced(files):
|
|
| 28 |
text = pageObj.extract_text().strip() # Extract text from the page
|
| 29 |
if text:
|
| 30 |
# Split text into chunks of approximately 'chunk_size' words
|
| 31 |
-
words = text.split(".")
|
| 32 |
for j in range(0, len(words)):
|
| 33 |
if words[j]:
|
| 34 |
chunk = (words[j]).strip()
|
|
|
|
| 28 |
text = pageObj.extract_text().strip() # Extract text from the page
|
| 29 |
if text:
|
| 30 |
# Split text into chunks of approximately 'chunk_size' words
|
| 31 |
+
words = text.split(".")
|
| 32 |
for j in range(0, len(words)):
|
| 33 |
if words[j]:
|
| 34 |
chunk = (words[j]).strip()
|