eagle0504 commited on
Commit
7cc4123
β€’
1 Parent(s): dc597fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
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
- "idx": "from_llm",
247
- "questions": question,
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 = []