Duplicated from whisper-event/whisper-demo
6249bc9 8400511
1
2
3
4
5
6
7
8
9
10
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))