A simple showcase of Azure OpenAI's capability to generate a summary of a pdf document.
To get started, you'll need to have the following installed and provisioned:
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.
- Install requirements
pip install -r requirements.txt
-
Set the environment variables from
.env
-
Run the project locally
python -m uvicorn main:app --reload
- 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"
}'
To run the project locally using docker
docker-compose up