updated lite

This commit is contained in:
Concedo 2024-07-09 20:42:51 +08:00
parent c9c098dab2
commit 116d5fe58e
3 changed files with 1196 additions and 337 deletions

View file

@ -730,7 +730,9 @@ def whisper_generate(genparams):
return outstr
def utfprint(str):
maxlen = 25000
maxlen = 32000
if args.debugmode >= 1:
maxlen = 64000
strlength = len(str)
if strlength > maxlen: #limit max output len
str = str[:maxlen] + f"... (+{strlength-maxlen} chars)"