Update app.py
Browse files
app.py
CHANGED
|
@@ -115,7 +115,7 @@ def sse_chat():
|
|
| 115 |
chat_history = [{'role': 'system', 'content': ' '}, *chat_history]
|
| 116 |
|
| 117 |
chat_template = TrainerTools().tokenizer.apply_chat_template(chat_history, tokenizer=False)
|
| 118 |
-
print(f"
|
| 119 |
chat_template = f'{chat_template}<assistant>'
|
| 120 |
|
| 121 |
if search_api:
|
|
|
|
| 115 |
chat_history = [{'role': 'system', 'content': ' '}, *chat_history]
|
| 116 |
|
| 117 |
chat_template = TrainerTools().tokenizer.apply_chat_template(chat_history, tokenizer=False)
|
| 118 |
+
print(f"generate for {chat_template}")
|
| 119 |
chat_template = f'{chat_template}<assistant>'
|
| 120 |
|
| 121 |
if search_api:
|