Update app.py
Browse files
app.py
CHANGED
@@ -242,13 +242,9 @@ if prompt := st.chat_input("Tell me about YSA"):
|
|
242 |
except:
|
243 |
llm_response = "Sorry, the inference endpoint is temporarily down. π"
|
244 |
|
245 |
-
finetuned_llm_guess =
|
246 |
-
|
247 |
-
|
248 |
-
"answers": llm_response,
|
249 |
-
"distances": 0
|
250 |
-
}
|
251 |
-
final_ref = final_ref.append(finetuned_llm_guess)
|
252 |
|
253 |
# add ai judge as additional rating
|
254 |
independent_ai_judge_score = []
|
|
|
242 |
except:
|
243 |
llm_response = "Sorry, the inference endpoint is temporarily down. π"
|
244 |
|
245 |
+
finetuned_llm_guess = ["from_llm", question, llm_response, 0]
|
246 |
+
final_ref.loc[-1] = finetuned_llm_guess
|
247 |
+
final_ref.index = df.index + 1
|
|
|
|
|
|
|
|
|
248 |
|
249 |
# add ai judge as additional rating
|
250 |
independent_ai_judge_score = []
|