Don't post when instance is empty

This commit is contained in:
Anthony Wang 2022-07-17 15:16:38 -05:00
parent b96409d739
commit a4765e17c5
Signed by: a
GPG key ID: BC96B00AEC5F2D76

4
bot.py
View file

@ -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]