Code Monkey home page Code Monkey logo

story-writer's Introduction

Story writer

An AI-based story writer and Python library which uses OpenAI's chatGPT and Dall-E to generate PDFs with a story and a picture from a prompt.

Usage: Streamlit app

You can try the streamlit app by installing streamlit and running this terminal command:

story-writer

img.png

Usage: Python

There is a high-level API available, which generates PDFs from prompts (e.g. the stories presented in the teaser above were produced using this notebook):

from story_writer import generate_story
generate_story("cat_story.pdf", "a story about a cat that is walking on a street")

And there is a low-level API available, which generates a story and an image separately. You can learn more about the low-level API in this notebook.

Installation

You can install story-writer using pip:

pip install story-writer

You also need to create an OpenAI API Key and add it to your environment variables as explained on this page.

Development

If you want to contribute to bia-bob, you can install it in development mode like this:

git clone https://github.com/haesleinhuepf/story-writer.git
cd story-writer
pip install -e .

Similar projects

Feedback welcome!

The story-writer is developed in the open because we believe in the open source community. Feel free to drop feedback as github issue. Contributions are very welcome.

License

Distributed under the terms of the BSD-3 license, "story-writer" is free and open source software

Acknowledgements

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.