I use OpenAI’s GPT-2 to generate poetry. The model takes a string as inspiration which consists firstly of a lengthy poem to set the task/style and a phrase concatenated to the end which sets the topic.