Spaces:
Sleeping
Sleeping
Update app.py
Browse files24 unmodified lines2526272829303124 unmodified lines# Iterate over each page in the PDFfor i in range(len(pdfReader.pages)):pageObj = pdfReader.pages[i] # Get the page objecttext = pageObj.extract_text() # Extract text from the pageif text:# Split text into chunks of approximately 'chunk_size' wordswords = text.split(".")24 unmodified lines2526272829303124 unmodified lines# Iterate over each page in the PDFfor i in range(len(pdfReader.pages)):pageObj = pdfReader.pages[i] # Get the page objecttext = pageObj.extract_text().strip() # Extract text from the pageif text:# Split text into chunks of approximately 'chunk_size' wordswords = text.split(".")
app.py+1-1