File size: 1,115 Bytes
2f87aad
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5c07215
 
 
 
2f87aad
 
5c07215
2c18274
 
 
2f87aad
 
 
 
 
 
 
 
 
 
 
5c07215
 
2f87aad
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import streamlit as st
import os

import logging

st.set_page_config(
    page_title="Home",
    page_icon="🐳",
)

# get a global var for logger accessor in this module
LOG_LEVEL = logging.DEBUG
g_logger = logging.getLogger(__name__)
g_logger.setLevel(LOG_LEVEL)

# one toggle for all the extra debug text
if "MODE_DEV_STATEFUL" not in st.session_state:
    st.session_state.MODE_DEV_STATEFUL = False
    
from utils.st_logs import init_logging_session_states
init_logging_session_states() # logging init should be early 

# set email state var to exist, to permit persistence across page switches 
if "input_author_email" not in st.session_state:
    st.session_state.input_author_email = ""

st.write("# Welcome to Cetacean Research Data Infrastructure! πŸ¬ΛšΛ–π“’Φ΄ΰ»‹ πŸ‹βœ§Λš.⋆")

st.sidebar.success("Here are the pages.")

st.markdown(
    """
    About: blablabla
"""
)



g_logger.info("App started.")
g_logger.warning(f"[D] Streamlit version: {st.__version__}. Python version: {os.sys.version}")

#g_logger.debug("debug message")
#g_logger.info("info message")
#g_logger.warning("warning message")