eagle0504 commited on
Commit
1e14df5
1 Parent(s): 9f6f8e9

L153 updated

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -150,7 +150,8 @@ if prompt := st.chat_input(initial_input):
150
  independent_ai_judge_score = []
151
  for i in range(final_ref.shape[0]):
152
  this_content = final_ref["answers"][i]
153
- if this_content != "NA":
 
154
  this_score = calculate_sts_openai_score(question, this_content)
155
  else:
156
  this_score = 0
 
150
  independent_ai_judge_score = []
151
  for i in range(final_ref.shape[0]):
152
  this_content = final_ref["answers"][i]
153
+ st.warning(this_content)
154
+ if len(this_content) > 3:
155
  this_score = calculate_sts_openai_score(question, this_content)
156
  else:
157
  this_score = 0