heikowagner commited on
Commit
d706fb6
1 Parent(s): 0cd40c7

Update app/app.py

Browse files
Files changed (1) hide show
  1. 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)>10:
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)>0:
28
  st.session_state['openai_key'] = openai_key
29
  os.environ["OPENAI_API_KEY"] = openai_key
30
  else: