Update pages/type_text.py
Browse files- pages/type_text.py +2 -2
pages/type_text.py
CHANGED
@@ -99,11 +99,11 @@ if INTdesc_input is not None and createSBScodes_clicked == True:
|
|
99 |
st.dataframe(data=dfALL, hide_index=True)
|
100 |
|
101 |
display_format = "ask REASONING MODEL: Which, if any, of the above SBS descriptions corresponds best to " + INTdesc_input +"? "
|
102 |
-
st.write(display_format)
|
103 |
question = "Which one, if any, of the below Saudi Billing System descriptions A, B, C, D, or E corresponds best to " + INTdesc_input +"? "
|
104 |
shortlist = [SBScorpus[result[0]["corpus_id"]], SBScorpus[result[1]["corpus_id"]], SBScorpus[result[2]["corpus_id"]], SBScorpus[result[3]["corpus_id"]], SBScorpus[result[4]["corpus_id"]]]
|
105 |
prompt = [question + " " +"A: "+ shortlist[0] + " " +"B: " + shortlist[1] + " " + "C: " + shortlist[2] + " " + "D: " + shortlist[3] + " " + "E: " + shortlist[4]]
|
106 |
-
|
107 |
|
108 |
messages = [
|
109 |
{"role": "system", "content": "You are a knowledgable AI assistant who always answers truthfully and precisely!"},
|
|
|
99 |
st.dataframe(data=dfALL, hide_index=True)
|
100 |
|
101 |
display_format = "ask REASONING MODEL: Which, if any, of the above SBS descriptions corresponds best to " + INTdesc_input +"? "
|
102 |
+
#st.write(display_format)
|
103 |
question = "Which one, if any, of the below Saudi Billing System descriptions A, B, C, D, or E corresponds best to " + INTdesc_input +"? "
|
104 |
shortlist = [SBScorpus[result[0]["corpus_id"]], SBScorpus[result[1]["corpus_id"]], SBScorpus[result[2]["corpus_id"]], SBScorpus[result[3]["corpus_id"]], SBScorpus[result[4]["corpus_id"]]]
|
105 |
prompt = [question + " " +"A: "+ shortlist[0] + " " +"B: " + shortlist[1] + " " + "C: " + shortlist[2] + " " + "D: " + shortlist[3] + " " + "E: " + shortlist[4]]
|
106 |
+
st.write(prompt)
|
107 |
|
108 |
messages = [
|
109 |
{"role": "system", "content": "You are a knowledgable AI assistant who always answers truthfully and precisely!"},
|