Spaces:
Sleeping
Sleeping
samlonka
commited on
Commit
·
fb032ac
1
Parent(s):
b225a1d
application modified
Browse files
app.py
CHANGED
@@ -26,15 +26,21 @@ from FunctionTools import ScriptureDescriptionToolSpec, MantraToolSpec
|
|
26 |
|
27 |
# Print all loaded secrets
|
28 |
all_secrets = st.secrets
|
29 |
-
st.write("All secrets:", all_secrets)
|
30 |
|
31 |
# Access the specific secret
|
32 |
try:
|
33 |
openai_api_key = st.secrets["OPENAI_APIKEY_CS"]
|
34 |
-
pinecone_api_key = st.secrets["PINECONE_API_KEY_SAM"]
|
35 |
#st.write("OpenAI API Key:", openai_api_key)
|
36 |
except KeyError as e:
|
37 |
st.error(f"KeyError: {e}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
#load keys
|
39 |
#openai_api_key = st.secrets["OPENAI_APIKEY_CS"]
|
40 |
#pinecone_api_key = st.secrets["PINECONE_API_KEY_SAM"]
|
|
|
26 |
|
27 |
# Print all loaded secrets
|
28 |
all_secrets = st.secrets
|
29 |
+
#st.write("All secrets:", all_secrets)
|
30 |
|
31 |
# Access the specific secret
|
32 |
try:
|
33 |
openai_api_key = st.secrets["OPENAI_APIKEY_CS"]
|
|
|
34 |
#st.write("OpenAI API Key:", openai_api_key)
|
35 |
except KeyError as e:
|
36 |
st.error(f"KeyError: {e}")
|
37 |
+
|
38 |
+
# Access the specific secret
|
39 |
+
try:
|
40 |
+
pinecone_api_key = st.secrets["PINECONE_API_KEY_SAM"]
|
41 |
+
#st.write("OpenAI API Key:", openai_api_key)
|
42 |
+
except KeyError as e:
|
43 |
+
st.error(f"KeyError: {e}")
|
44 |
#load keys
|
45 |
#openai_api_key = st.secrets["OPENAI_APIKEY_CS"]
|
46 |
#pinecone_api_key = st.secrets["PINECONE_API_KEY_SAM"]
|