georad commited on
Commit
bb21f8c
·
verified ·
1 Parent(s): 7573a94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -6,11 +6,11 @@ HEADER_SELECTOR = 'header[data-testid="stHeader"]'
6
 
7
  # ---- SELECTOR FOR THE MAIN CONTENT AREA THAT NEEDS PADDING ----
8
  # Target the first direct div child of the stAppViewContainer which often holds the main scrollable content
9
- #MAIN_CONTENT_SELECTOR = 'section[data-testid="stMain"]'
10
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stMain"] > div:nth-child(1)'
11
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stMainBlockContainer"]'
12
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"]'
13
- MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] > div:nth-child(1)'
14
  # Alternative if the above doesn't work or if your content is further nested:
15
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] .main-content-wrapper-class'
16
  # Or, very commonly, Streamlit wraps main content in a div with class "block-container":
@@ -30,7 +30,7 @@ custom_css = f"""
30
  /* box-shadow: 0 2px 4px -1px rgba(0,0,0,0.1); */
31
  /*.reportview-container .main .block-container{{ */
32
  /* padding-top: 0rem; */
33
- }}
34
  }}
35
 
36
  /* Adding padding to the main content area to prevent overlap with the sticky header */
@@ -58,10 +58,10 @@ st.markdown(custom_css, unsafe_allow_html=True)
58
  #st.logo(image="images/menu_book_60dp_75FBFD.png")
59
  st.title("Map descriptions to SBS codes with Sentence Transformer + Reasoning")
60
  st.subheader("Select specific Chapter for quicker results")
61
- #st.sidebar.logo(image="images/menu_book_60dp_75FBFD.png")
62
- #st.sidebar.header("SBS V2.0 mapper")
63
- #st.sidebar.write("(work in progress)")
64
- #st.sidebar.text("Demo by JA-RAD")
65
 
66
  # --- PAGE SETUP ---
67
  type_text_page = st.Page(
 
6
 
7
  # ---- SELECTOR FOR THE MAIN CONTENT AREA THAT NEEDS PADDING ----
8
  # Target the first direct div child of the stAppViewContainer which often holds the main scrollable content
9
+ MAIN_CONTENT_SELECTOR = 'section[data-testid="stMain"]'
10
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stMain"] > div:nth-child(1)'
11
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stMainBlockContainer"]'
12
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"]'
13
+ #MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] > div:nth-child(1)'
14
  # Alternative if the above doesn't work or if your content is further nested:
15
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] .main-content-wrapper-class'
16
  # Or, very commonly, Streamlit wraps main content in a div with class "block-container":
 
30
  /* box-shadow: 0 2px 4px -1px rgba(0,0,0,0.1); */
31
  /*.reportview-container .main .block-container{{ */
32
  /* padding-top: 0rem; */
33
+ /* }}
34
  }}
35
 
36
  /* Adding padding to the main content area to prevent overlap with the sticky header */
 
58
  #st.logo(image="images/menu_book_60dp_75FBFD.png")
59
  st.title("Map descriptions to SBS codes with Sentence Transformer + Reasoning")
60
  st.subheader("Select specific Chapter for quicker results")
61
+ st.sidebar.logo(image="images/menu_book_60dp_75FBFD.png")
62
+ st.sidebar.header("SBS V2.0 mapper")
63
+ st.sidebar.write("(work in progress)")
64
+ st.sidebar.text("Demo by JA-RAD")
65
 
66
  # --- PAGE SETUP ---
67
  type_text_page = st.Page(