georad commited on
Commit
6dfd1dc
·
verified ·
1 Parent(s): e51779d

Update pages/type_text.py

Browse files
Files changed (1) hide show
  1. pages/type_text.py +2 -2
pages/type_text.py CHANGED
@@ -124,8 +124,8 @@ if INTdesc_input is not None and createSBScodes_clicked == True:
124
  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"]]})
125
  dfALL = pd.concat([dfALL, pd.DataFrame([dictA])], ignore_index=True)
126
 
127
- dfALL.to_string(index=False)
128
- st.write(dfALL)
129
 
130
  display_format = "ask REASONING MODEL: Which, if any, of the above Saudi Billing System descriptions corresponds best to " + INTdesc_input +"? "
131
  st.write(display_format)
 
124
  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"]]})
125
  dfALL = pd.concat([dfALL, pd.DataFrame([dictA])], ignore_index=True)
126
 
127
+ st.dataframe(data=dfALL, hide_index=True)
128
+ #st.write(dfALL)
129
 
130
  display_format = "ask REASONING MODEL: Which, if any, of the above Saudi Billing System descriptions corresponds best to " + INTdesc_input +"? "
131
  st.write(display_format)