From a4765e17c55ec7793621f7bcb3be6255ededab3a Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sun, 17 Jul 2022 15:16:38 -0500 Subject: Don't post when instance is empty --- bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bot.py b/bot.py index e2ec8bd..f392b11 100644 --- a/bot.py +++ b/bot.py @@ -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] -- cgit v1.2.3-70-g09d2