Want to use GPT-2 models to generate text on the go and send it to servers with your discord bot? Look no further, just use this simple template.
You are going to need to download your /trained_model folder from training with aitextgen
and place it in the same directory as this python file. You also will need to install requirements aitextgen
and discord
.
Add my rap-lyric generating discord bot, DrizzyBot to your server.
Looking to learn more about the aitextgen
library or how to train a GPT-2 model on it? Check out my comprehensive walkthrough and use this code to build a rock lyric bot!
Looking to build a flask site with aitextgen
? Reach out to me.