ahmedumeraziz's picture
Update utils/auth.py
cdfad7f verified
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")