Spaces:
Build error
Build error
heikowagner
commited on
Commit
·
be996f7
1
Parent(s):
8e85c4c
Update app/app.py
Browse files- app/app.py +1 -1
app/app.py
CHANGED
@@ -24,7 +24,7 @@ else:
|
|
24 |
if model_type=='OpenAI':
|
25 |
if 'openai_key' not in st.session_state:
|
26 |
openai_key= st.text_area('OpenAI Key:', '')
|
27 |
-
if len(openai_key)
|
28 |
st.session_state['openai_key'] = openai_key
|
29 |
os.environ["OPENAI_API_KEY"] = openai_key
|
30 |
else:
|
|
|
24 |
if model_type=='OpenAI':
|
25 |
if 'openai_key' not in st.session_state:
|
26 |
openai_key= st.text_area('OpenAI Key:', '')
|
27 |
+
if len(openai_key)>-1:
|
28 |
st.session_state['openai_key'] = openai_key
|
29 |
os.environ["OPENAI_API_KEY"] = openai_key
|
30 |
else:
|