Story writer
A 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 and writes them into a PDF.
Usage: Streamlit app
You can try the streamlit app by installing streamlit and running this terminal command:
story-writer
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
Metadata
Release files for story-writer 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| story-writer-0.1.1.tar.gz | 9.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| story_writer-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.0 kB
Release files / story-writer-0.1.1.tar.gz
| Download URL | story-writer-0.1.1.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ba1b72dba908d6b92788308f0e690e7201523a927887e78a63e004951c7e113
|
|
BLAKE2b-256 checksum How to use checksums |
00ed3580c7a59182c9ba73f05855f8424dd73e039a92bcbcb60333bf7bcbec8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / story_writer-0.1.1-py3-none-any.whl
| Download URL | story_writer-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bcbdf10656f32417291431260757952957adee996de639f1099dd279fae0a9fb
|
|
BLAKE2b-256 checksum How to use checksums |
0ecf8f5cbe842f6e3eb3ba97c47654c1aea88ffc2410e23ab002db42010300fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|