Created
November 19, 2023 01:53
-
-
Save hedaprakash/ff065208a8d32f9942c38ff8c03a36df to your computer and use it in GitHub Desktop.
connect_openai
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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