gpt-author v2: an AI tool for automatically creating novels

basic introduction

gpt-author v2 is an AI that automatically creates novels. It can generate an entire fantasy novel in a few minutes based on the initial prompt and number of chapters provided by the user, and automatically package it into an e-book format.

The project uses a chain of large model calls such as GPT-4, Stable Diffusion API, and Anthropic API to generate original fantasy novels. In addition, it can create an original cover based on the book and convert the entire work to PDF or e-book format at one time, and the production cost is low. It only costs $4 to produce a 15-chapter novel, and this tool It is open source and free to use. Does this mean novelists will be replaced by artificial intelligence?

The process of novel generation mainly involves generating a list of potential drawings given a prompt. It then selects the most engaging plots, refines them, and extracts the titles. Afterwards, it generates a detailed storyline with a specified number of chapters and then attempts to improve that storyline. The AI ​​then writes each chapter individually based on the plot and taking into account the content of previous chapters. Finally, generate tips for designing a cover and create the cover. Finally, everything comes together and the novel is compiled into an EPUB file that you can instantly download and read on any EPUB-compatible viewer or device.

The following are the prices of each token for several major LLM APIs used, including OpenAI, AnthropicAI, Cohere, and GoogleAI.

how to use

In Google Colab, just open the notebook, add the API key, and run the cells in sequence.

Google Jupyter Notebook: 
https://github.com/Crossme0809/frenzyTechAI/blob/main/gpt-author/gpt_author_v2.ipynb

In the last cell of the notebook, you can customize the prompt and number of chapters for your novel. For example:

prompt = "就氛围而言,与珀西·杰克逊或哈利·波特相似,但情节完全不同。以现代为背景。添加一些技术元素。"
num_chapters = 20
writing_style = "清晰易懂,类似于青少年小说。描述性强,有时冗长。"
novel, title, chapters, chapter_titles = write_fantasy_novel(prompt, num_chapters, writing_style)

This will generate a 20-chapter novel based on the given prompt. Note - prompts with less than 7 chapters can often cause problems.

Github repo: https://github.com/mshumer/gpt-author

Guess you like

Origin blog.csdn.net/FrenzyTechAI/article/details/132753379