Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

An API that uses GPT-3 to summarize text, aimed at educational applications

License

Notifications You must be signed in to change notification settings

TheComputeGuy/ai-summarizer

Repository files navigation

Saransh - Text Summarizer

This tool exposes an API to summarize large text inputs into byte-sized chunks. It uses OpenAIs GPT-3 model to accomplish this.

Try it out

Try out the API with our demo backend or from our webapp

Installing

Start with cloning this repo

[Optional - Recommended] Using a virtual environment

Install and setup virtual environment

pip install virtualenv

virtualenv venv

To activate your virtualenv

source ./venv/bin/activate

To exit the virtual environment

deactivate

App setup

Install the required dependencies

pip install -r requirements.txt

Running in local

Environment variables

Add the following environment variables for the app to work:

Variable Description
OPENAI_API_KEY The OpenAI API key. Generate here

Debug mode

python main.py

Non-debug mode

python app.py

API Documentation

To check app health, go to <server>:<port>/ or <server>:<port>/isAlive

Detailed API documentation for the summary endpoints is available in docs folder in the repo

Endpoint Documentation
/summary text_summary.md
/pdfSummary pdf_summary.md

About

An API that uses GPT-3 to summarize text, aimed at educational applications

Topics

Resources

License

Stars

Watchers

Forks