Merge branch 'master' into concedo_experimental

# Conflicts:
#	README.md
This commit is contained in:
Concedo 2023-07-07 14:15:39 +08:00
commit 32102c2064
9 changed files with 30 additions and 15 deletions

View file

@ -198,7 +198,6 @@ def load_model(model_filename):
inputs.executable_path = (getdirpath()+"/").encode("UTF-8")
inputs.debugmode = args.debugmode
banned_tokens = args.bantokens
print(banned_tokens)
for n in range(ban_token_max):
if not banned_tokens or n >= len(banned_tokens):
inputs.banned_tokens[n] = "".encode("UTF-8")