PDFs_chat_bots / utils /auth.py
ahmedumeraziz's picture
Update utils/auth.py
cdfad7f verified
Raw History Blame Contribute Delete
388 Bytes
import streamlit as st
def setup_auth():
st.sidebar.title("🔐 Login")
password = st.sidebar.text_input("Enter Access Password", type="password")
if st.sidebar.button("Authenticate"):
if password == "12345": # Change this!
st.session_state.authenticated = True
st.rerun()
else:
st.sidebar.error("Incorrect password")