Vitrous commited on
Commit
6cfe896
·
verified ·
1 Parent(s): da54742

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -171,9 +171,8 @@ def threaded_chat_response(previous_chat: str, msg_prompt: str) -> dict:
171
  if previous_chat:
172
 
173
  prompt_template=f'''
174
- <|im_start|>system{system_message}<|im_end|>
175
  <|im_start|>user {msg_prompt}<|im_end|>
176
- <|im_start|>system{history_message}<|im_end|>
177
  <|im_start|>assistant
178
  '''
179
  else:
 
171
  if previous_chat:
172
 
173
  prompt_template=f'''
174
+ <|im_start|>system{system_message}{history_message}<|im_end|>
175
  <|im_start|>user {msg_prompt}<|im_end|>
 
176
  <|im_start|>assistant
177
  '''
178
  else: