long1104 commited on
Commit
c6d6ccb
·
verified ·
1 Parent(s): 6e58dd2

Update setup_code.py

Browse files
Files changed (1) hide show
  1. setup_code.py +2 -1
setup_code.py CHANGED
@@ -36,7 +36,8 @@ import os
36
  #_ = load_dotenv(find_dotenv())
37
 
38
  # GETTING OpenAI and Pinecone api key
39
- openai.api_key = st.secrets['OPENAI_KEY']
 
40
  pc_apikey = st.secrets['pc_apikey']
41
 
42
  openai_client = OpenAI(api_key=openai.api_key)
 
36
  #_ = load_dotenv(find_dotenv())
37
 
38
  # GETTING OpenAI and Pinecone api key
39
+ OPENAI_KEY = st.secrets['OPENAI_KEY']
40
+ openai.api_key = OPENAI_KEY
41
  pc_apikey = st.secrets['pc_apikey']
42
 
43
  openai_client = OpenAI(api_key=openai.api_key)