Git Product home page Git Product logo

world-gpt's Introduction

Story Generator

cover

World generation NPC generation
image_sg3 image_sg2

Story Generator is an app, available as a web version or a standalone for Mac, Windows and Linux.

With ChatGPT as the backbone, create your own world and observe lifelike characters interacting with each other and living their lives. All that from a single text input with your world description!

Video demo

Watch the video

Idea

OpenAI's ChatGPT blew my mind and I got an idea about using it as a tool for world generation. But static worlds are boring! So I decided to add NPCs (non-playable characters) to see if they can interact in the evolving worlds and achieve their goals... It turns out that yes, they can! And it's super interesting to observe how they do that and what happens to them. That's how the Story Generator was born.

Features

  • World Creation: Create custom worlds from any(!) description you can imagine. Whether it's a medieval dark fantasy realm or a cyber-punk sci-fi setting with cyber-ponies (yes! Cyber-ponies!), the possibilities are endless

  • Dynamic NPCs: Each NPC within the generated world has its own unique name, attributes, global goal and current state. These characters are not mere placeholders but dynamic entities that react and adapt to the changing world around them

  • Evolving Worlds: With the initial description provided, the generated worlds undergo changes over time based on a specified interval. Immerse yourself in the excitement of observing a dynamic world that continuously evolves and transforms

  • Changing World Characteristics: Various aspects of the world, such as its temperature and environment, dynamically shift and transform. These changes trigger a chain of events that prompt the NPCs to respond and adapt, creating a dynamic and realistic narrative

  • Text-to-image Generation: Generated textual descriptions of the world and characters are fed to the text-to-image (Dall-e 3 by default) model which generates wonderful images that support the story

Ultimately, the world's and NPC's conditions converge to create an exceptional story.

Try it for free on the web, run it for free locally, or buy it to support the creator. Story Generator is built entirely using Shiny so if you want to know how to build web apps with Shiny alongside ChatGPT in an asynchronous manner that's a great source of knowledge! Additionally, you can employ Story Generator in your own game by customizing the code to suit your requirements.

Install from source

  1. Clone the repo
  2. Create a Python 3.10 environment, here is how you can do it with conda conda create -n worldgpt python=3.10.6
  3. Install all the requirement packages with pip install -r requirements.txt
  4. Finally run the app with python ./story_generator.py
  5. Provide your OpenAI key. See here. This repo doesn't contain the OpenAI key. If you want to try it for free, visit https://www.story-generator.ai/ It might be available if the usage of my openai key has not exceed the limits :)

TODO

  1. Text-to-image generation
  2. Generate the full story from the whole world's and NPCs' progress
  3. Allow user to manually adjust the world's and NPCs' state on the fly
  4. Save/load
  5. Track for NPCs' goal completion, keep memory of completed tasks, select new one(s)

Support the author ❤️

It really matters! At least it will allow to support the free web-version of the app (hosting, openai requests)

Ko-Fi

GitHub sponsorship

Gumroad

world-gpt's People

Contributors

dene33 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.