Mariusz47 commited on
Commit
3a27bad
·
1 Parent(s): 87e3fac

f-string bug fixed

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -143,8 +143,8 @@ class MyProfileAvatarChat(Config, FileReader):
143
  print(f"Reusing past answer (similarity={sim_score:.2%})")
144
  refine_prompt = (
145
  f"The user previously asked a similar question:\n"
146
- + f"Old question: {similar["question"]}\n"
147
- + f"Old answer: {similar["answer"]}\n\n"
148
  + f"Now user asks: {message}\n\n"
149
  + f"Please update or refine the old answer to match the new question."
150
  )
 
143
  print(f"Reusing past answer (similarity={sim_score:.2%})")
144
  refine_prompt = (
145
  f"The user previously asked a similar question:\n"
146
+ + f"Old question: {similar['question']}\n"
147
+ + f"Old answer: {similar['answer']}\n\n"
148
  + f"Now user asks: {message}\n\n"
149
  + f"Please update or refine the old answer to match the new question."
150
  )