Update pages/type_text.py
Browse files- pages/type_text.py +15 -12
pages/type_text.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
-
import streamlit as st
|
|
|
2 |
import pandas as pd
|
3 |
from io import StringIO
|
4 |
import json
|
@@ -6,20 +7,22 @@ import torch
|
|
6 |
from transformers import pipeline # AutoTokenizer, AutoModelForCausalLM, AutoModelForTokenClassification
|
7 |
from sentence_transformers import SentenceTransformer, util
|
8 |
import time
|
9 |
-
|
10 |
import os
|
11 |
os.getenv("HF_TOKEN")
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
23 |
|
24 |
st.header("Map internal descriptions to SBS codes with Sentence Transformer + Reasoning Models")
|
25 |
st.subheader("Select specific Chapter for quicker results")
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from streamlit_navigation_bar import st_navbar
|
3 |
import pandas as pd
|
4 |
from io import StringIO
|
5 |
import json
|
|
|
7 |
from transformers import pipeline # AutoTokenizer, AutoModelForCausalLM, AutoModelForTokenClassification
|
8 |
from sentence_transformers import SentenceTransformer, util
|
9 |
import time
|
|
|
10 |
import os
|
11 |
os.getenv("HF_TOKEN")
|
12 |
|
13 |
+
page = st_navbar(["SBSmapper])
|
14 |
+
st.write(page)
|
15 |
+
|
16 |
+
#hide_streamlit_style = """
|
17 |
+
# <style>
|
18 |
+
# div[data-testid="stStatusWidget"] {
|
19 |
+
# visibility: visible;
|
20 |
+
# position: sticky;
|
21 |
+
# top: 0
|
22 |
+
# }
|
23 |
+
# </style>
|
24 |
+
# """
|
25 |
+
#st.markdown(hide_streamlit_style, unsafe_allow_html=True)
|
26 |
|
27 |
st.header("Map internal descriptions to SBS codes with Sentence Transformer + Reasoning Models")
|
28 |
st.subheader("Select specific Chapter for quicker results")
|