Generating visual narrative for stories using Computer Vision and Natural Language Processing
The story is stored inside stories
folder.
For demo, we are using an excerpt from Harry Potter and The Sorcerer’s Stone, stored as hp.txt
.
Chapter titles follow this convention - !-<chapter number>-<chapter name>
. Example - !-1-The Boy Who Lived
Each line in the file is a paragraph.
Set the following Environment Variables
GOOGLE_APPLICATION_CREDENTIALS = "/path/to/your/service/account/json file"
GOOGLE_CUSTOM_SEARCH = "The ID of your Custom Search Engine."
GOOGLE_API_KEY = "The API key you set up above."
$ FLASK_APP=run.py flask run
The website will be hosted on http://127.0.0.1:5000.