KeshavRa commited on
Commit
6f096f2
·
verified ·
1 Parent(s): d576a33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(".").strip()
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()