Update app.py
Browse files
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) !=
|
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='👉')
|