import streamlit as st # At the top of your existing file with your imports def add_sticky_header_css(): st.markdown(""" """, unsafe_allow_html=True) # Then at the start of your main function or execution flow add_sticky_header_css() # Rest of your existing app continues... # --- PAGE SETUP --- type_text_page = st.Page( page="pages/type_text.py", title="DEMO (work in progress)", icon=":material/keyboard:", default=True,) # --- Your Streamlit App --- st.logo(image="images/menu_book_60dp_75FBFD.png") st.title("Map descriptions to SBS codes with Sentence Transformer + Reasoning") st.subheader("Select specific Chapter for quicker results") st.sidebar.header("SBS V2.0 mapper") st.sidebar.write("(work in progress)") st.sidebar.text("Demo by JA-RAD") # --- NAVIGATION SETUP --- pg = st.navigation(pages=[type_text_page]) # WITHOUT SECTIONS ##pg = st.navigation({"Chapter_Index": [start_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS pg.run()