Skip to content

Instantly share code, notes, and snippets.

@Barqawiz
Created June 23, 2023 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Barqawiz/97573f8e25eb3c491953ca2e6ac9d251 to your computer and use it in GitHub Desktop.
Save Barqawiz/97573f8e25eb3c491953ca2e6ac9d251 to your computer and use it in GitHub Desktop.
import boto3
import os
from dotenv import load_dotenv
load_dotenv()
# s3 object
s3_client = boto3.client('s3')
# openai object
openai.api_key = os.environ.get("OPENAI_API_KEY")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment