|
import streamlit as st |
|
|
|
|
|
|
|
|
|
|
|
st.markdown(""" |
|
<style> |
|
/* Basic styling for our custom header */ |
|
.custom-sticky-header { |
|
background-color: #90EE90; |
|
padding: 10px 15px; |
|
border-bottom: 1px solid #ccc; |
|
margin-bottom: 20px; |
|
} |
|
|
|
/* Hide the default Streamlit header */ |
|
[data-testid="stHeader"] { |
|
visibility: hidden; |
|
height: 0; |
|
} |
|
|
|
/* Ensure our custom header stays at the top */ |
|
[data-testid="stVerticalBlock"] > div:first-child { |
|
position: sticky !important; |
|
top: 0 !important; |
|
background-color: white !important; |
|
z-index: 999 !important; |
|
} |
|
</style> |
|
""", unsafe_allow_html=True) |
|
|
|
|
|
|
|
header_container = st.container() |
|
|
|
|
|
with header_container: |
|
st.markdown(""" |
|
<div class="custom-sticky-header"> |
|
<h1>Map descriptions to SBS codes with Sentence Transformer + Reasoning</h1> |
|
<h3>Select specific Chapter for quicker results</h3> |
|
</div> |
|
""", unsafe_allow_html=True) |
|
|
|
|
|
try: |
|
st.image("images/menu_book_60dp_75FBFD.png", width=100) |
|
except: |
|
|
|
st.write("Logo image") |
|
|
|
|
|
st.write("") |
|
|
|
|
|
st.sidebar.header("SBS V2.0 mapper") |
|
st.sidebar.write("(work in progress)") |
|
st.sidebar.text("Demo by JA-RAD") |
|
|
|
|
|
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]) |
|
pg.run() |