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")