import streamlit as st # No need to import time if not simulating task here # --- Page Configuration --- # This sets the title and icon that appear in the default header st.set_page_config( page_title="SBS V2.0 mapper", # This title will appear in the fixed header page_icon=":material/keyboard:", # This icon can also appear in the header layout="wide" # Optional: Use wide layout ) # --- Custom CSS for Fixed Default Header --- st.markdown(""" """, unsafe_allow_html=True) # --- App Content (will scroll below the fixed header) --- # The logo placed here will likely appear in the sidebar or main body, # not in the fixed default header. Use st.set_page_config for the header icon. st.logo(image="images/menu_book_60dp_75FBFD.png") st.sidebar.header("SBS V2.0 mapper") st.sidebar.write("(work in progress)") st.sidebar.text("Demo by JA-RAD") # Note: st.title and st.subheader here will appear *below* the fixed header, # as they are part of the main app content flow. st.title("Map descriptions to SBS codes with Sentence Transformer + Reasoning") st.subheader("Select specific Chapter for quicker results") # --- NAVIGATION SETUP --- # Keep your existing navigation setup type_text_page = st.Page( page="pages/type_text.py", title="DEMO (work in progress)", icon=":material/keyboard:", default=True, ) pg = st.navigation(pages=[type_text_page]) # WITHOUT SECTIONS pg.run() # Add some extra content to make the page scrollable for testing for i in range(100): # Increased lines to ensure sufficient scrolling st.write(f"This is scrollable content line {i}")