Spaces:
Runtime error
Runtime error
DylanASHillier
commited on
Commit
•
3262aa0
1
Parent(s):
ab283a4
updates secrets
Browse files- streamlit.py +4 -2
streamlit.py
CHANGED
@@ -49,8 +49,10 @@ def check_password():
|
|
49 |
import dotenv
|
50 |
dotenv.load_dotenv()
|
51 |
import os
|
52 |
-
ANTHROPIC_API_KEY = os.environ.get("ANTHROPIC_API_KEY")
|
53 |
-
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
|
|
|
|
|
54 |
|
55 |
# Commented out IPython magic to ensure Python compatibility.
|
56 |
# %pip install anthropic langchain backoff tiktoken
|
|
|
49 |
import dotenv
|
50 |
dotenv.load_dotenv()
|
51 |
import os
|
52 |
+
# ANTHROPIC_API_KEY = os.environ.get("ANTHROPIC_API_KEY")
|
53 |
+
# OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
|
54 |
+
ANTHROPIC_API_KEY = st.secrets["ANTHROPIC_API_KEY"]
|
55 |
+
OPENAI_API_KEY = st.secrets["OPENAI_API_KEY"]
|
56 |
|
57 |
# Commented out IPython magic to ensure Python compatibility.
|
58 |
# %pip install anthropic langchain backoff tiktoken
|