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

Update setup_code.py

Browse files
Files changed (1) hide show
  1. setup_code.py +3 -1
setup_code.py CHANGED
@@ -37,9 +37,11 @@ import os
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)
44
 
45
  # Function to get the embeddings of the text using OpenAI text-embedding-ada-002 model
 
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
+ print(OPENAI_KEY)
44
+
45
  openai_client = OpenAI(api_key=openai.api_key)
46
 
47
  # Function to get the embeddings of the text using OpenAI text-embedding-ada-002 model