Spaces:
Runtime error
Runtime error
Matt
commited on
Commit
•
f75ac1d
1
Parent(s):
69460b6
Fix newlines
Browse files
app.py
CHANGED
@@ -14,10 +14,10 @@ demo_conversation2 = [
|
|
14 |
]
|
15 |
|
16 |
default_template = """{% for message in messages %}
|
17 |
-
{{ "<|im_start|>" + message["role"] +
|
18 |
{% endfor %}
|
19 |
{% if add_generation_prompt %}
|
20 |
-
{{ "<|im_start|>assistant
|
21 |
{% endif %}"""
|
22 |
|
23 |
conversations = [demo_conversation1, demo_conversation2]
|
|
|
14 |
]
|
15 |
|
16 |
default_template = """{% for message in messages %}
|
17 |
+
{{ "<|im_start|>" + message["role"] + "\\n" + message["content"] + "<|im_end|>\\n" }}
|
18 |
{% endfor %}
|
19 |
{% if add_generation_prompt %}
|
20 |
+
{{ "<|im_start|>assistant\\n" }}
|
21 |
{% endif %}"""
|
22 |
|
23 |
conversations = [demo_conversation1, demo_conversation2]
|