juancopi81's picture
Support for longer videos
8400511
raw
history blame contribute delete
231 Bytes
def is_google_colab():
try:
import google.colab
return True
except:
return False
def splitter(n, s):
pieces = s.split()
return (" ".join(pieces[i:i+n]) for i in range(0, len(pieces), n))