Coder Social home page Coder Social logo

aisummary's Introduction

Summarize PDFs Using GPT3

Original by Zed Tarar
Improved by Kai Turanski

Python code to help you skim through PDFs

This program allows you to select a PDF, divides it into chunks readable by GPT3, and creates a summary of it next to the original PDF.

Current limitations

  • GPT3 may have a hard time interpreting paragraphs that bleed from one chunk to another
  • Text output can sometimes contain badly formatted text, which can usually be deleted easily with no harm to comprehension

Editing

  1. To edit the python file, make sure you have the right libraries installed. sys, math, and os should be local to your computer. Here are links for the openai, PyPDF2, and tkinter libraries.
  2. You'll need to get your API key from OpenAI (ask chat GPT how to do that), then copy it into the script where indicated
  3. The output is both printed on the command line and saved to summary of <your document name>.txt

Usage

  1. Navigate to your ./dist/<your operating system>_version_pdf_extract/<your operating system>_version_pdf_extract.<extension> file
  2. Double click to run the file and you're done!

Contribute

There are probably more elegant ways to create summaries from long PDFs, so if you have them, please share!


aisummary's People

Contributors

kailaidescope avatar zed-t 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.