Update pages/type_text.py
Browse files- pages/type_text.py +4 -6
pages/type_text.py
CHANGED
|
@@ -169,8 +169,6 @@ for pct_complete in range(1,101):
|
|
| 169 |
time.sleep(0.5)
|
| 170 |
progress_bar1.progress(pct_complete)
|
| 171 |
|
| 172 |
-
|
| 173 |
-
|
| 174 |
if INTdesc_input is not None and st.button("Map to SBS codes", key='run_st_model'):
|
| 175 |
HF_model_results = util.semantic_search(INTdesc_embedding, SBScorpus_embeddings)
|
| 176 |
HF_model_results_sorted = sorted(HF_model_results, key=lambda x: x[1], reverse=True)
|
|
@@ -207,10 +205,10 @@ if INTdesc_input is not None and st.button("Map to SBS codes", key='run_st_model
|
|
| 207 |
)
|
| 208 |
st.write(outputs[0]["generated_text"][-1]["content"])
|
| 209 |
|
| 210 |
-
progress_bar2 = st.progress(0)
|
| 211 |
-
for pct_complete in range(1,101):
|
| 212 |
-
|
| 213 |
-
|
| 214 |
|
| 215 |
|
| 216 |
bs, b1, b2, b3, bLast = st.columns([0.75, 1.5, 1.5, 1.5, 0.75])
|
|
|
|
| 169 |
time.sleep(0.5)
|
| 170 |
progress_bar1.progress(pct_complete)
|
| 171 |
|
|
|
|
|
|
|
| 172 |
if INTdesc_input is not None and st.button("Map to SBS codes", key='run_st_model'):
|
| 173 |
HF_model_results = util.semantic_search(INTdesc_embedding, SBScorpus_embeddings)
|
| 174 |
HF_model_results_sorted = sorted(HF_model_results, key=lambda x: x[1], reverse=True)
|
|
|
|
| 205 |
)
|
| 206 |
st.write(outputs[0]["generated_text"][-1]["content"])
|
| 207 |
|
| 208 |
+
#progress_bar2 = st.progress(0)
|
| 209 |
+
#for pct_complete in range(1,101):
|
| 210 |
+
# time.sleep(0.5)
|
| 211 |
+
# progress_bar2.progress(pct_complete)
|
| 212 |
|
| 213 |
|
| 214 |
bs, b1, b2, b3, bLast = st.columns([0.75, 1.5, 1.5, 1.5, 0.75])
|