Spaces:
Sleeping
Sleeping
another format(v4) for prompt
Browse files
app.py
CHANGED
@@ -22,7 +22,8 @@ def predict(message, history):
|
|
22 |
history_transformer_format = history + [[message, ""]]
|
23 |
stop = StopOnTokens()
|
24 |
|
25 |
-
messages = "".join(["".join(["
|
|
|
26 |
for item in history_transformer_format])
|
27 |
print("MESSAGES: ", messages)
|
28 |
|
|
|
22 |
history_transformer_format = history + [[message, ""]]
|
23 |
stop = StopOnTokens()
|
24 |
|
25 |
+
messages = "".join(["".join(["<|start_header_id|>user<|end_header_id|>\n"+item[0],
|
26 |
+
"<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n"+item[1]])
|
27 |
for item in history_transformer_format])
|
28 |
print("MESSAGES: ", messages)
|
29 |
|