Skip to content

sumesh-aot/pdf-to-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

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