mikavehns / BookGPT

Writes complete books with given paramters, using GPT-3.
MIT License
353 stars 66 forks source link

BookGPT (Beta)

This program uses the ChatGPT API to generate books based on your specified parameters.

Installation

To install this program, simply follow these steps:

  1. Clone this repository to your local machine by running the following command in your terminal:
    git clone https://github.com/mikavehns/BookGPT.git
  2. Navigate to the root directory of the repository using cd BookGPT
  3. Install the required dependencies by running the following command:
    pip install -r requirements.txt

Prerequisites

In order to use this program, you must have a ChatGPT API key. The API Key must then be inserted into the config.json file.

Usage

To use this program, simply run the following command in your terminal:

python run.py

You will then be prompted to enter the following information:

The program will then generate a Title and Chapter Titles + Content. You will get a detailed structure of the book. The generated books will then be saved as book.md in BookGPT/src.

Examples

Here are some examples:

https://user-images.githubusercontent.com/66560242/210459589-751c82d7-e874-4119-a09a-cc36ea2be73c.mp4

Notes

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing