diff options
author | Anthony Wang | 2022-07-17 15:16:38 -0500 |
---|---|---|
committer | Anthony Wang | 2022-07-17 15:16:38 -0500 |
commit | a4765e17c55ec7793621f7bcb3be6255ededab3a (patch) | |
tree | 3b9483eb5b856fe69bddb6b1cdf97ae37e8a81a3 | |
parent | b96409d7393cce8568bbbdb9b86a20c1252b8b64 (diff) |
Don't post when instance is empty
-rw-r--r-- | bot.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -77,6 +77,10 @@ output = tokenizer.decode(model.generate( print(output) +if args.instance is None: + quit() + + # Prepare the post output = output.split('\n') post = output[0] |