Update app.py
Browse files
app.py
CHANGED
|
@@ -14,38 +14,6 @@ header {display: none !important;}
|
|
| 14 |
# Create a container at the top of the app
|
| 15 |
header = st.container()
|
| 16 |
|
| 17 |
-
# Use the container for the header
|
| 18 |
-
with header:
|
| 19 |
-
# Apply background color with markdown
|
| 20 |
-
st.markdown(
|
| 21 |
-
"""
|
| 22 |
-
<div style="
|
| 23 |
-
background-color: #90EE90;
|
| 24 |
-
padding: 10px;
|
| 25 |
-
margin-bottom: 10px;
|
| 26 |
-
border-bottom: 1px solid #ddd;
|
| 27 |
-
position: fixed;
|
| 28 |
-
top: 0;
|
| 29 |
-
left: 0;
|
| 30 |
-
right: 0;
|
| 31 |
-
z-index: 9999;
|
| 32 |
-
width: 100%;
|
| 33 |
-
">
|
| 34 |
-
<div style="display: flex; align-items: center;">
|
| 35 |
-
<div style="flex: 0 0 60px;">
|
| 36 |
-
<img src="https://raw.githubusercontent.com/streamlit/streamlit/master/lib/streamlit/static/favicon.png" width="50"
|
| 37 |
-
alt="Logo" style="vertical-align: middle;">
|
| 38 |
-
</div>
|
| 39 |
-
<div style="flex-grow: 1;">
|
| 40 |
-
<h2 style="margin: 0; padding: 0;">Map descriptions to SBS codes with Sentence Transformer + Reasoning</h2>
|
| 41 |
-
<p style="margin: 0; padding: 0;">Select specific Chapter for quicker results</p>
|
| 42 |
-
</div>
|
| 43 |
-
</div>
|
| 44 |
-
</div>
|
| 45 |
-
""",
|
| 46 |
-
unsafe_allow_html=True
|
| 47 |
-
)
|
| 48 |
-
|
| 49 |
# Add spacing to prevent content from being hidden under the fixed header
|
| 50 |
st.markdown(
|
| 51 |
"""
|
|
@@ -59,9 +27,9 @@ st.markdown(
|
|
| 59 |
st.sidebar.header("SBS V2.0 mapper")
|
| 60 |
st.sidebar.write("(work in progress)")
|
| 61 |
st.sidebar.text("Demo by JA-RAD")
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
|
| 66 |
# Page setup - moved after the custom header
|
| 67 |
type_text_page = st.Page(
|
|
|
|
| 14 |
# Create a container at the top of the app
|
| 15 |
header = st.container()
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
# Add spacing to prevent content from being hidden under the fixed header
|
| 18 |
st.markdown(
|
| 19 |
"""
|
|
|
|
| 27 |
st.sidebar.header("SBS V2.0 mapper")
|
| 28 |
st.sidebar.write("(work in progress)")
|
| 29 |
st.sidebar.text("Demo by JA-RAD")
|
| 30 |
+
st.title("Map descriptions to SBS codes with Sentence Transformer + Reasoning")
|
| 31 |
+
st.subheader("Select specific Chapter for quicker results")
|
| 32 |
+
st.logo(image="images/menu_book_60dp_75FBFD.png")
|
| 33 |
|
| 34 |
# Page setup - moved after the custom header
|
| 35 |
type_text_page = st.Page(
|