# auth.py is an optional module for better organization import streamlit as st def authenticate(): if "password" not in st.session_state: st.session_state["password"] = "" # Input for password password = st.text_input("Enter password:", type="password") if password: # Check against secrets if st.session_state["password"] == st.secrets["passwords"]["password"]: st.session_state["authenticated"] = True else: st.error("❌ Incorrect password") else: st.warning("Please enter your password")