To test this python script, you need to have a bunch of pre-requisites:
- Created a Pangea Account
- Get a Pangea Redact token
- Create a OpenAI account and get the OpenAI key
export PANGEA_REDACT_TOKEN="<PANGEA_REDACT_TOKEN_FROM_CONSOLE>"
export OPENAI_API_KEY="<OPENAI_KEY>"
pip install pangea-sdk openai
Create a new file called secure-gpt.py
and paste the following code in. Then run it:
python3 secure-gpt.py
Video Walkthrough - https://youtu.be/LNN5s_6G3Cc
Run on Replit - https://replit.com/@PranavShikarpur/Redact-GPT-in-3-Lines-of-Code?v=1#README.md