A Recurrent Neural Network capable of infinitely generating poetry. The Keras RNN is trained using the poem.txt file. If you wish to train another model, please set retrain=True or change output_model_path to another path of your choosing.
To use the RNN, this can be done by either using PoemGeneration.py after training a model, or using GradioApp.py for gradio deployment.
Gradio Deployment: https://huggingface.co/spaces/sweetfelinity/PoemGeneration
poem.txt provided by: https://www.kaggle.com/datasets/harshalgadhe/poem-generation