This tool exposes an API to summarize large text inputs into byte-sized chunks. It uses OpenAIs GPT-3 model to accomplish this.
Try out the API with our demo backend or from our webapp
Start with cloning this repo
Install and setup virtual environment
pip install virtualenv
virtualenv venv
To activate your virtualenv
source ./venv/bin/activate
To exit the virtual environment
deactivate
Install the required dependencies
pip install -r requirements.txt
Add the following environment variables for the app to work:
Variable | Description |
---|---|
OPENAI_API_KEY | The OpenAI API key. Generate here |
python main.py
python app.py
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 |