Spaces:
Sleeping
Sleeping
Commit
·
dd49910
1
Parent(s):
469fe7d
Update playground.py
Browse files- tabs/playground.py +1 -0
tabs/playground.py
CHANGED
@@ -89,6 +89,7 @@ def run():
|
|
89 |
, unsafe_allow_html=True)
|
90 |
if 'OPENAI_API_KEY' in st.session_state:
|
91 |
try:
|
|
|
92 |
st.write(os.environ['OPENAI_API_KEY'])
|
93 |
col1, col2 = st.columns([3, 1])
|
94 |
with col2:
|
|
|
89 |
, unsafe_allow_html=True)
|
90 |
if 'OPENAI_API_KEY' in st.session_state:
|
91 |
try:
|
92 |
+
openai.api_key = st.session_state['OPENAI_API_KEY']
|
93 |
st.write(os.environ['OPENAI_API_KEY'])
|
94 |
col1, col2 = st.columns([3, 1])
|
95 |
with col2:
|