Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
/ story-teller Public archive

Generating visual narrative for stories using Computer Vision and Natural Language Processing

Notifications You must be signed in to change notification settings

aman-chauhan/story-teller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STORY TELLER

Generating visual narrative for stories using Computer Vision and Natural Language Processing

Prerequisites

Story

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.

Google Cloud Platform

  • Setup a service account key, and store the associated json safely on your machine.
  • Setup a Google Custom Search Engine with CreativeWork schema as restriction, and Image Search turned on.
  • Setup an API key with Google Cloud Platform to make API calls to your search engine.

Server and REST APIs

Environment

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."

How to Start Server

    $ FLASK_APP=run.py flask run

The website will be hosted on http://127.0.0.1:5000.

About

Generating visual narrative for stories using Computer Vision and Natural Language Processing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published