georad commited on
Commit
0d1bcfa
·
verified ·
1 Parent(s): 488a274

Update pages/type_text.py

Browse files
Files changed (1) hide show
  1. pages/type_text.py +2 -2
pages/type_text.py CHANGED
@@ -171,7 +171,8 @@ if INTdesc_input and st.button(":blue[Map to SBS codes]", key="run_st_model"): #
171
  dictA.update({"Score": "%.4f" % result[4]["score"], "SBS Code": df_SBS.loc[df_SBS["Long_Description"] == SBScorpus[result[4]["corpus_id"]],"SBS_Code_Hyphenated"].values[0], "SBS Description V2.0": SBScorpus[result[4]["corpus_id"]]})
172
  dfALL = pd.concat([dfALL, pd.DataFrame([dictA])], ignore_index=True)
173
 
174
- st.dataframe(data=dfALL, hide_index=True)
 
175
  components.html(scroll_script, height=0, width=0)
176
 
177
  ## Define the Reasoning models
@@ -230,6 +231,5 @@ if INTdesc_input and st.button(":blue[Map to SBS codes]", key="run_st_model"): #
230
 
231
  # Add a dummy element at the bottom AFTER all content is rendered
232
  st.markdown('<div id="bottom"></div>', unsafe_allow_html=True)
233
-
234
  # Inject the scroll script AFTER the dummy element is added
235
  components.html(scroll_script, height=0, width=0)
 
171
  dictA.update({"Score": "%.4f" % result[4]["score"], "SBS Code": df_SBS.loc[df_SBS["Long_Description"] == SBScorpus[result[4]["corpus_id"]],"SBS_Code_Hyphenated"].values[0], "SBS Description V2.0": SBScorpus[result[4]["corpus_id"]]})
172
  dfALL = pd.concat([dfALL, pd.DataFrame([dictA])], ignore_index=True)
173
 
174
+ st.dataframe(data=dfALL, hide_index=True)
175
+ st.markdown('<div id="bottom"></div>', unsafe_allow_html=True)
176
  components.html(scroll_script, height=0, width=0)
177
 
178
  ## Define the Reasoning models
 
231
 
232
  # Add a dummy element at the bottom AFTER all content is rendered
233
  st.markdown('<div id="bottom"></div>', unsafe_allow_html=True)
 
234
  # Inject the scroll script AFTER the dummy element is added
235
  components.html(scroll_script, height=0, width=0)