add Authentication help

main
Gustav von Zitzewitz 1 year ago
parent 5ecd2583f2
commit 870bfa24de

@ -5,6 +5,7 @@ from streamlit_chat import message
from constants import (
ACTIVELOOP_HELP,
APP_NAME,
AUTHENTICATION_HELP,
DEFAULT_DATA_SOURCE,
OPENAI_HELP,
PAGE_ICON,
@ -23,7 +24,9 @@ load_dotenv()
# Page options and header
st.set_option("client.showErrorDetails", True)
st.set_page_config(page_title=APP_NAME, page_icon=PAGE_ICON, initial_sidebar_state="expanded")
st.set_page_config(
page_title=APP_NAME, page_icon=PAGE_ICON, initial_sidebar_state="expanded"
)
st.markdown(
f"<h1 style='text-align: center;'>{APP_NAME} {PAGE_ICON} <br> I know all about your data!</h1>",
unsafe_allow_html=True,
@ -51,7 +54,7 @@ if "activeloop_org_name" not in st.session_state:
# Sidebar
with st.sidebar:
st.title("Authentication")
st.title("Authentication", help=AUTHENTICATION_HELP)
with st.form("authentication"):
openai_api_key = st.text_input(
"OpenAI API Key",

@ -7,6 +7,12 @@ PAGE_ICON = "🤖"
DATA_PATH = Path.cwd() / "data"
DEFAULT_DATA_SOURCE = "git@github.com:gustavz/DataChad.git"
AUTHENTICATION_HELP = """
Your credentials are only stored in your session state.\n
The keys are neither exposed nor made visible or stored permanently in any way.\n
Feel free to check out [the code base](https://github.com/gustavz/DataChad) to validate how things work.
"""
OPENAI_HELP = """
You can sign-up for OpenAI's API [here](https://openai.com/blog/openai-api).\n
Once you are logged in, you find the API keys [here](https://platform.openai.com/account/api-keys)

Loading…
Cancel
Save