georad commited on
Commit
f1b1ddc
·
verified ·
1 Parent(s): ca25d48

Update pages/type_text.py

Browse files
Files changed (1) hide show
  1. pages/type_text.py +2 -2
pages/type_text.py CHANGED
@@ -101,8 +101,8 @@ if INTdesc_input is not None and createSBScodes_clicked == True:
101
  #st.write(display_format)
102
  question = "Which one, if any, of the below Saudi Billing System descriptions A, B, C, D, or E corresponds best to " + INTdesc_input +"? "
103
  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"]]]
104
- prompt = [question + " " +"A: "+ shortlist[0] + " " +"B: " + shortlist[1] + " " + "C: " + shortlist[2] + " " + "D: " + shortlist[3] + " " + "E: " + shortlist[4]]
105
- st.write(prompt[0])
106
 
107
  messages = [
108
  {"role": "system", "content": "You are a knowledgable AI assistant who always answers truthfully and precisely!"},
 
101
  #st.write(display_format)
102
  question = "Which one, if any, of the below Saudi Billing System descriptions A, B, C, D, or E corresponds best to " + INTdesc_input +"? "
103
  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"]]]
104
+ prompt = question + " " +"A: "+ shortlist[0] + " " +"B: " + shortlist[1] + " " + "C: " + shortlist[2] + " " + "D: " + shortlist[3] + " " + "E: " + shortlist[4]
105
+ st.write(prompt)
106
 
107
  messages = [
108
  {"role": "system", "content": "You are a knowledgable AI assistant who always answers truthfully and precisely!"},