Skip to content

ShristiSuman/ECS289G-project

 
 

Repository files navigation

ECS289G-project

ECS289G: Computational Storytelling using AI term project (Winter 2023)

Welcome!

Short Story Long

Short Story Long is an automated Story generating framework with Character Profile Creator and Social interaction Dialogue Generator.

System Architecture and Modules

System Architecture

  • Adaptable Author Input Module
  • A text multi-input system allows author to enter multiple attributes like genre, start of story, characters and their traits, etc to accomodate unique and creative thinking methods of different authors.

  • Story generator Module
  • The inputs fed by the user is provided as an input to GPT module which generates the initial story.

  • Dynamic Story Regeneration Editor
  • An option to edit the initial input leads to dynamic story regenration while still maintaing the crux of storyline.

  • Character Profile Creator
  • Profile creation based on the generated story will display character's name, age, traits and backstory.

  • Character Visualizer
  • Character Traits along with generated story is used as an input to GAN which results in chracter visualized as an image

  • In-Game Dialogue Generator and Editor
  • Multiple optional attributes like number of characters, genre, location and expected social outcome are accomodated to develop an in-game dialogue scene which may be edited and regenrated based on author's liking.

Novelty

Our project provides a complete integrated framework that can assist any author regardless of their thinking process in most idea generation or brainstorming processes involved for creating a game’s storyline, characters, appearances, in-game dialogues etc. This helps accommodate authors of different thinking characteristics on a single automated platform to help in story generation, character profile creation.

Usage

To run ShortSL on your machine please run the below commands in the same order:

git clone https://github.com/rohis06/ECS289G-project.git
cd ECS289G-project

To use this repository, you need requirements.txt installed. You can install it using the below command.

pip install -r requirements.txt

Make sure that you have the latest version of pip by running:

pip install --upgrade pip
cd tkinter

Finally, run the Tkinter application using the below command.

python story_gen.py

Demo

You can get an idea of the kind of story / dialougue conversation generated by ShortSL by checking the files in sample_output folder.

  • story.txt : This has a sample story being generated by ShortSL.
  • dialogue.txt : This has a sample dialogue conversation being generated by ShortSL.
  • char_Alex.txt and char_John.txt : These files show the kind of character profiles dynamically generated by ShortSL.

Demo 1 Demo 2 Demo 3 Demo 4

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

ECS289G: Computational Storytelling using AI term project (Winter 2023)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%