Spaces:
Sleeping
Sleeping
Update app.py
Browse files27 unmodified lines282930313132333427 unmodified lines if text: # Split text into chunks of approximately 'chunk_size' words words = text.split(".") for j in range(0, len(words), chuck_size): 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