How to use this project:
- Download the zip
- Download these additional files
- Install pytorch using:
- pip install torch===1.3.1 torchvision===0.4.2 -f https://download.pytorch.org/whl/torch_stable.html
- Install requirements: pip install -r requirements.txt
- Go to python console, import nltk and do nltk.download('wordnet')
- Go to project terminal and enter the following two arguments:
- set FLASK_APP=grimm_writer.py
- flask run --host=127.0.0.1 --port=5000
Then you should be able to visit the webapp at http://127.0.0.1:5000/static/generate-story.html
If not, close the connection and repeat steps 5 and 6.
To visualize what is happening inside the model you can open the visualization notebook and run it.
The demo video can be found here