mabrouk commited on
Commit
582f651
1 Parent(s): 9085162

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -57,7 +57,7 @@ with st.sidebar:
57
  openai_api_key = st.secrets['OPENAI_API_TOKEN']
58
  else:
59
  openai_api_key = st.text_input('Enter OpenAI API token:', type='password')
60
- if not (openai_api_key).startswith('sk-') or len(openai_api_key) != 51:
61
  st.warning('Please enter your credentials!', icon='⚠️')
62
  else:
63
  st.success('Proceed to entering your prompt message!', icon='👉')
 
57
  openai_api_key = st.secrets['OPENAI_API_TOKEN']
58
  else:
59
  openai_api_key = st.text_input('Enter OpenAI API token:', type='password')
60
+ if not (openai_api_key).startswith('sk-') or len(openai_api_key) != 56:
61
  st.warning('Please enter your credentials!', icon='⚠️')
62
  else:
63
  st.success('Proceed to entering your prompt message!', icon='👉')