aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2022-07-17 15:16:38 -0500
committerAnthony Wang2022-07-17 15:16:38 -0500
commita4765e17c55ec7793621f7bcb3be6255ededab3a (patch)
tree3b9483eb5b856fe69bddb6b1cdf97ae37e8a81a3
parentb96409d7393cce8568bbbdb9b86a20c1252b8b64 (diff)
Don't post when instance is empty
-rw-r--r--bot.py4
1 files changed, 4 insertions, 0 deletions
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]