Spaces:
Sleeping
Sleeping
Update app.py
Browse files27 unmodified lines2829303132333427 unmodified linesif text:# Split text into chunks of approximately 'chunk_size' wordswords = text.split(".")for j in range(0, len(words), chuck_size):# Get the chunk of text from j-chunk_size to j+chunk_size# start = max(0, j - chunk_size)# end = min(len(words), j + chunk_size + 1)27 unmodified lines2829303132333427 unmodified linesif text:# Split text into chunks of approximately 'chunk_size' wordswords = text.split(".")for j in range(0, len(words), chunk_size):# Get the chunk of text from j-chunk_size to j+chunk_size# start = max(0, j - chunk_size)# end = min(len(words), j + chunk_size + 1)
app.py+1-1