Update app.py
Browse files
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:
|