A Jupyter Notebook that uses OpenAI's gpt-3.5-turbo or gpt-4 to generate a book based on a prompt.
- Python
- OpenAI API Key and Org Id (make a .env file in the root directory)
- Pandoc
- Clone the repo
- Install the requirements (pip install -r requirements.txt)
- Create a .env file in the root directory with the following variables:
- OPENAI_API_KEY
- OPENAI_ORG_ID
- Edit the config.json file to your liking (Do not change the "book_format" parameter)
- Make a folder in the root directory of the project called
eBook-Saves
- Run the Jupyter Notebook
- Check eBook-Saves folder foryour new eBook
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.