Skip to content

chrisrobbo-aot/pdf-to-json

 
 

Repository files navigation

Overview

Leverages OpenAI to convert data from PDF to JSON.

Setup

1. Create a virtual environment

For macOS/Linux:
python3 -m venv venv
For Windows:
python -m venv venv

2. Activate the virtual environment

For macOS/Linux:
source venv/bin/activate
For Windows:
.\venv\Scripts\activate

3. Install requirements

pip install -r requirements.txt

4. Add OpenAI API key to the environment

For macOS/Linux:
export OPENAI_API_KEY=<your-openai-api-key>
For Windows (CMD):
set OPENAI_API_KEY=<your-openai-api-key>
For Windows (PowerShell):
$env:OPENAI_API_KEY="<your-openai-api-key>"

5. Run the Python file to generate the JSON

python app.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%