Spaces:
Sleeping
Sleeping
Update setup_code.py
Browse files- 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 |
-
|
|
|
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)
|