Benjamin Consolvo
commited on
Commit
·
70d01bc
1
Parent(s):
8fced99
streamlit secret
Browse files
app.py
CHANGED
|
@@ -32,7 +32,8 @@ with st.sidebar:
|
|
| 32 |
|
| 33 |
endpoint = endpoint_data[modelname]
|
| 34 |
|
| 35 |
-
api_key=os.environ.get('API_KEY')
|
|
|
|
| 36 |
|
| 37 |
if not api_key:
|
| 38 |
st.info("Please add your OpenAI API key to continue.")
|
|
|
|
| 32 |
|
| 33 |
endpoint = endpoint_data[modelname]
|
| 34 |
|
| 35 |
+
# api_key=os.environ.get('API_KEY')
|
| 36 |
+
api_key = st.secrets["openai_apikey"]
|
| 37 |
|
| 38 |
if not api_key:
|
| 39 |
st.info("Please add your OpenAI API key to continue.")
|