Update pages/type_text.py
Browse files- pages/type_text.py +22 -24
pages/type_text.py
CHANGED
@@ -10,30 +10,28 @@ import time
|
|
10 |
import os
|
11 |
os.getenv("HF_TOKEN")
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
</style>
|
35 |
|
36 |
-
|
37 |
|
38 |
st.header("Map internal descriptions to SBS codes with Sentence Transformer + Reasoning Models")
|
39 |
st.subheader("Select specific Chapter for quicker results")
|
@@ -220,7 +218,7 @@ if INTdesc_input is not None and st.button("Map to SBS codes", key="run_st_model
|
|
220 |
|
221 |
status_text = st.empty()
|
222 |
status_text.warning("It may take several minutes for Reasoning Model to analyze above 5 options and output results below")
|
223 |
-
runningToggle(True)
|
224 |
|
225 |
|
226 |
outputs = pipe(
|
|
|
10 |
import os
|
11 |
os.getenv("HF_TOKEN")
|
12 |
|
13 |
+
hide_streamlit_style = """
|
14 |
+
<style>
|
15 |
+
|
16 |
+
div[class='css-4z1n4l ehezqtx5']{
|
17 |
+
background: rgba(0, 0, 0, 0.3);
|
18 |
+
color: #fff;
|
19 |
+
border-radius: 15px;
|
20 |
+
height: 40px;
|
21 |
+
max-width: 160px;
|
22 |
+
|
23 |
+
|
24 |
+
position: fixed;
|
25 |
+
top: 50%;
|
26 |
+
left: 50%;
|
27 |
+
transform: translate(-50%, -50%);
|
28 |
+
width: 50%;
|
29 |
+
}
|
30 |
+
|
31 |
+
</style>
|
32 |
+
""""
|
|
|
|
|
33 |
|
34 |
+
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
|
35 |
|
36 |
st.header("Map internal descriptions to SBS codes with Sentence Transformer + Reasoning Models")
|
37 |
st.subheader("Select specific Chapter for quicker results")
|
|
|
218 |
|
219 |
status_text = st.empty()
|
220 |
status_text.warning("It may take several minutes for Reasoning Model to analyze above 5 options and output results below")
|
221 |
+
#runningToggle(True)
|
222 |
|
223 |
|
224 |
outputs = pipe(
|