L153 updated
Browse files
app.py
CHANGED
@@ -138,7 +138,7 @@ if prompt := st.chat_input(initial_input):
|
|
138 |
llm_response = "NA."
|
139 |
else:
|
140 |
st.warning(
|
141 |
-
"
|
142 |
)
|
143 |
llm_response = "NA"
|
144 |
|
@@ -150,7 +150,10 @@ 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 |
-
|
|
|
|
|
|
|
154 |
independent_ai_judge_score.append(this_score)
|
155 |
|
156 |
final_ref["ai_judge"] = independent_ai_judge_score
|
|
|
138 |
llm_response = "NA."
|
139 |
else:
|
140 |
st.warning(
|
141 |
+
"Apologies! We are in the progress of fine-tune the model, so it's currently unavailable. ⚙️"
|
142 |
)
|
143 |
llm_response = "NA"
|
144 |
|
|
|
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
|
157 |
independent_ai_judge_score.append(this_score)
|
158 |
|
159 |
final_ref["ai_judge"] = independent_ai_judge_score
|