Skip to content

appdevgbb/hotline-bling

Repository files navigation

hotline-bling

A simple showcase of Azure OpenAI's capability to generate a summary of a pdf document.

Getting Started

To get started, you'll need to have the following installed and provisioned:

Local Setup

To get started, you'll need to create a .env file in the root of the project. This file will contain all of the environment variables that are used in the project. You can use the .env.example file as a template.

  1. Install requirements
pip install -r requirements.txt
  1. Set the environment variables from .env

  2. Run the project locally

python -m uvicorn main:app --reload
  1. Run using postman or curl
curl --location --request POST 'http://localhost:8000/tldr' \
--header 'Content-Type: application/json' \
--data-raw '{
    "paper_url": "https://www.sec.gov/files/form1-u.pdf"
}'

img.png

Local Docker run

To run the project locally using docker

docker-compose up