georad commited on
Commit
ec3e912
·
verified ·
1 Parent(s): cfa6678

Update pages/type_text.py

Browse files
Files changed (1) hide show
  1. 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
- hide_streamlit_style = """
14
- <style>
15
- div[data-testid="stStatusWidget"] {
16
- visibility: visible;
17
- position: sticky;
18
- top: 0
19
- }
20
- </style>
21
- """
22
- st.markdown(hide_streamlit_style, unsafe_allow_html=True)
 
 
 
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")