Skip to content

Write like Shakespeare with the power of Recurrent Neural Networks. A flask webapp equipped with a tensorflow RNN model that takes in sentence and generates poem like the great poet William Shakespeare.

License

Notifications You must be signed in to change notification settings

soum-sr/PoemGenerator

Repository files navigation

PoemGenerator

Write like Shakespeare with the power of Recurrent Neural Networks. A flask webapp equipped with a tensorflow RNN model that takes in sentence and generates poem like the great poet William Shakespeare.

In-use Animation

Create a Virtual Environment in Python

  • Install virtualenv
pip install virtualenv
  • Create a virtual environment (Here the name of the virtualenv is 'poemgenerator' you can name it whatever you want and it will be created in your pwd)
virtualenv poemgenerator
  • Start the virtual environment
  • Linux/Mac
source poemgenerator/bin/activate
  • Windows
poemgenerator\Scripts\activate

Install all packages used here

pip install -r requirements.txt

To train the model

python train.py

To generate poems on terminal

python generate.py

To run the flask app

python app.py

About

Write like Shakespeare with the power of Recurrent Neural Networks. A flask webapp equipped with a tensorflow RNN model that takes in sentence and generates poem like the great poet William Shakespeare.

Topics

Resources

License

Stars

Watchers

Forks