Update pages/type_text.py
Browse files- pages/type_text.py +1 -1
pages/type_text.py
CHANGED
@@ -111,7 +111,7 @@ if INTdesc_input is not None and createSBScodes_clicked == True:
|
|
111 |
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"]])
|
112 |
|
113 |
dfA = pd.DataFrame.from_dict(dictA)
|
114 |
-
dfA =
|
115 |
|
116 |
display_format = "ask REASONING MODEL: Which, if any, of the above Saudi Billing System descriptions corresponds best to " + INTdesc_input +"? "
|
117 |
st.write(display_format)
|
|
|
111 |
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"]])
|
112 |
|
113 |
dfA = pd.DataFrame.from_dict(dictA)
|
114 |
+
dfA = dfA.fillna("")
|
115 |
|
116 |
display_format = "ask REASONING MODEL: Which, if any, of the above Saudi Billing System descriptions corresponds best to " + INTdesc_input +"? "
|
117 |
st.write(display_format)
|