Update pages/type_text.py
Browse files- pages/type_text.py +2 -1
pages/type_text.py
CHANGED
@@ -123,7 +123,8 @@ if INTdesc_input is not None and createSBScodes_clicked == True:
|
|
123 |
#dictA["Score"].append("%.4f" % result[4]["score"]), dictA["SBS Code"].append(df_SBS.loc[df_SBS["Long_Description"] == SBScorpus[result[4]["corpus_id"]],"SBS_Code_Hyphenated"].values[0]), dictA["SBS Description V2.0"].append(SBScorpus[result[4]["corpus_id"]])
|
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.write(dfALL)
|
128 |
|
129 |
display_format = "ask REASONING MODEL: Which, if any, of the above Saudi Billing System descriptions corresponds best to " + INTdesc_input +"? "
|
|
|
123 |
#dictA["Score"].append("%.4f" % result[4]["score"]), dictA["SBS Code"].append(df_SBS.loc[df_SBS["Long_Description"] == SBScorpus[result[4]["corpus_id"]],"SBS_Code_Hyphenated"].values[0]), dictA["SBS Description V2.0"].append(SBScorpus[result[4]["corpus_id"]])
|
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.style.hide_index()
|
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 +"? "
|