ankanghosh commited on
Commit
0246183
·
verified ·
1 Parent(s): 8291f3d

Rename Home.py to app.py

Browse files
Files changed (1) hide show
  1. Home.py → app.py +16 -0
Home.py → app.py RENAMED
@@ -4,6 +4,22 @@ import streamlit.components.v1 as components
4
 
5
  # FIRST: Set page config before ANY other Streamlit command
6
  st.set_page_config(page_title="Spirituality Q&A", page_icon="🕉️")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
  # Initialize ALL session state variables right at the beginning
9
  if 'initialized' not in st.session_state:
 
4
 
5
  # FIRST: Set page config before ANY other Streamlit command
6
  st.set_page_config(page_title="Spirituality Q&A", page_icon="🕉️")
7
+ # Replace "app" with "Home" in sidebar
8
+ st.markdown("""
9
+ <style>
10
+ section[data-testid="stSidebar"] li:first-child div p {
11
+ visibility: hidden;
12
+ position: relative;
13
+ }
14
+ section[data-testid="stSidebar"] li:first-child div p:after {
15
+ visibility: visible;
16
+ position: absolute;
17
+ top: 0;
18
+ left: 0;
19
+ content: 'Home';
20
+ }
21
+ </style>
22
+ """, unsafe_allow_html=True)
23
 
24
  # Initialize ALL session state variables right at the beginning
25
  if 'initialized' not in st.session_state: