Coder Social home page Coder Social logo

coleballard / twainsformation Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 311 KB

Toolkit powered by ChatGPT for creating, modifying the style of, and condensing a piece of literature.

Home Page: https://twainsformation-a15e0b6a5751.herokuapp.com/

HTML 15.49% CSS 7.03% Python 39.52% JavaScript 37.89% Procfile 0.06%
ai chatgpt literature text-generation novel-generation novel-generator creative-writing nlp openai-api python

twainsformation's Introduction

Twainsformation

Description

Toolkit powered by ChatGPT for creating, modifying the style of, and condensing a piece of literature.

Features

  • Change the style of a long-form piece of literature
    • Style change is applied to the entire piece
  • Create a long-form piece of literature based on comprehensive details
    • Use an outline
    • Use a summary
  • Export to pdf

Future Features

  • Create a long-form piece of literature based on comprehensive details
    • Use nothing! Let ChatGPT handle all the ideas
    • Use your likes and dislikes to create a novel fit for you
  • Condense a piece of literature
    • Condense into a few paragraphs
    • Condense into a few pages
    • Condense into 10-50 pages

Note

  • The application never stores or uses your API Key outside of your own prompts. All of the code in this repository is public.
  • The application uses gpt-3.5-turbo for the vast majority of prompts and each tick mark on the loading bar is about .2 cents. Most prompts total out between 2 - 15 cents.

Design

  • user provides .txt file of a writing (e.g., book or short story) and a prompt to be applied to the entire text
  • a pdf file is created with the ChatGPT changes

Requirements

Must have an Open-AI API Key.

Usage

  1. Create an OpenAI account and get an API Key.

  2. Go to https://twainsformation-a15e0b6a5751.herokuapp.com/.

  3. Press the API Key button, then paste your OpenAI API Key in the designated input field.

  4. Click on either the Style Changer or Book Writer tab.

  5. Fill out the forms and press the Submit button whenever your prompt is ready.

  6. The application will use iteration and strategic prompting to create a book.

  7. A pdf will automatically be downloaded whenever the loading bar gets to 100%.

  8. Feel free to leave feedback about the quality of the produced text via email.

Contribution

  1. Clone the respository.
git clone https://github.com/ColeBallard/twainsformation
  1. Install the latest version of python.

  2. Install the dependencies.

pip install -r requirements.txt
  1. Create an OpenAI account and get an API Key.

  2. Run app.py.

python app.py
  1. Open http://127.0.0.1:5000 in your browser.

  2. Download a publicly-available book in text-file format. Some good places to look are Project Gutenberg and Internet Archive.

  3. Press the API Key button, then paste your OpenAI API Key in the designated input field.

  4. Feel free to leave feedback about the quality of the produced text via email.

twainsformation's People

Contributors

coleballard avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.