Spaces:
Paused
Paused
Arturo Jiménez de los Galanes Reguillos
commited on
Commit
·
005c893
1
Parent(s):
25de67e
Restore chat template
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from threading import Thread
|
|
| 5 |
import torch
|
| 6 |
|
| 7 |
MODEL = "m-a-p/OpenCodeInterpreter-DS-33B"
|
| 8 |
-
CHAT_TEMPLATE = "{
|
| 9 |
|
| 10 |
system_message = "You are a computer programmer that can translate python code to C++ in order to improve performance"
|
| 11 |
|
|
|
|
| 5 |
import torch
|
| 6 |
|
| 7 |
MODEL = "m-a-p/OpenCodeInterpreter-DS-33B"
|
| 8 |
+
CHAT_TEMPLATE = "{% for message in messages %}\n{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}\n{% endfor %}\n{% if add_generation_prompt %}\n{{ '<|im_start|>assistant\n' }}\n{% endif %}"
|
| 9 |
|
| 10 |
system_message = "You are a computer programmer that can translate python code to C++ in order to improve performance"
|
| 11 |
|