diff options
author | Anthony Wang | 2022-02-22 22:44:17 -0600 |
---|---|---|
committer | Anthony Wang | 2022-02-22 22:44:17 -0600 |
commit | 3010b246857ad77b7984abf704b75884b4a91847 (patch) | |
tree | 4fbc59c7ee4443970468f3067e5d2e14017417d6 | |
parent | 758998d17ec3eb431a01b622aa2dd7506422ddf5 (diff) |
Increase maximum word count
-rw-r--r-- | bot.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -54,7 +54,7 @@ if args.input is None: print(args.input) inputs = tokenizer.encode(args.input, return_tensors="pt") output = tokenizer.decode(model.generate( - inputs, do_sample=True, max_length=100, top_p=0.9)[0]) + inputs, do_sample=True, max_length=150, top_p=0.9)[0]) print(output) |