georad commited on
Commit
23d11d4
·
verified ·
1 Parent(s): 1e8445d

Update pages/type_text.py

Browse files
Files changed (1) hide show
  1. 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
- def runningToggle(bool):
15
- if bool == True:
16
- hide_streamlit_style =
17
- <style>
18
-
19
- div[class='css-4z1n4l ehezqtx5']{
20
- background: rgba(0, 0, 0, 0.3);
21
- color: #fff;
22
- border-radius: 15px;
23
- height: 40px;
24
- max-width: 160px;
25
-
26
-
27
- position: fixed;
28
- top: 50%;
29
- left: 50%;
30
- transform: translate(-50%, -50%);
31
- width: 50%;
32
- }
33
-
34
- </style>
35
 
36
- st.markdown(hide_streamlit_style, unsafe_allow_html=True)
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(