Spaces:
Running
Running
import streamlit as st | |
st.title("Profile") | |
admin_pass = st.text_input("Admin Access", value="", type="password") | |
if admin_pass != "": | |
if admin_pass == st.secrets["admin_pass"]: | |
st.success("Admin Access Granted") | |
st.session_state.admin = True | |
else: | |
st.error("Wrong Password") | |
st.session_state.admin = False | |