Skip to content

Instantly share code, notes, and snippets.

@hedaprakash
Created November 19, 2023 01:53
Show Gist options
  • Select an option

  • Save hedaprakash/ff065208a8d32f9942c38ff8c03a36df to your computer and use it in GitHub Desktop.

Select an option

Save hedaprakash/ff065208a8d32f9942c38ff8c03a36df to your computer and use it in GitHub Desktop.
connect_openai
import openai
import time
import streamlit as st
from dotenv import load_dotenv
# Load the environment variables from .env file
load_dotenv()
# Initialize the client
client = openai.OpenAI()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment