AnirudhEsthuri-MV commited on
Commit
27caa28
·
verified ·
1 Parent(s): 0b7c6b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -125,7 +125,7 @@ def rewrite_message(
125
  return rewritten_msg
126
  try:
127
  rewritten_msg = ingest_and_rewrite(
128
- user_id=persona_name, query=msg, model_type=provider
129
  )
130
  if show_rationale:
131
  rewritten_msg += " At the beginning of your response, please say the following in ITALIC: 'Persona Rationale: ' followed by 1 sentence about how your reasoning for how the persona traits influenced this response, also in italics. Begin your answer on the next line."
@@ -517,4 +517,4 @@ for turn in st.session_state.history:
517
  )
518
  # Mark as no longer new
519
  if is_new:
520
- turn["is_new"] = False
 
125
  return rewritten_msg
126
  try:
127
  rewritten_msg = ingest_and_rewrite(
128
+ user_id=persona_name, query=msg
129
  )
130
  if show_rationale:
131
  rewritten_msg += " At the beginning of your response, please say the following in ITALIC: 'Persona Rationale: ' followed by 1 sentence about how your reasoning for how the persona traits influenced this response, also in italics. Begin your answer on the next line."
 
517
  )
518
  # Mark as no longer new
519
  if is_new:
520
+ turn["is_new"] = False