Spaces:
Sleeping
Sleeping
File size: 406 Bytes
178b25e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# common.py
import extra_streamlit_components as stx
import streamlit as st
import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("__name__")
logger.debug("調査用ログ")
#ログインの確認
def check_login():
value = stx.CookieManager().get(cookie='some_cookie_name')
if value is None:
st.warning("**ログインしてください**")
st.stop()
|