Spaces:
Running
Running
typo
Browse files
sketch.js
CHANGED
|
@@ -24,7 +24,7 @@ async function textGenTask(input){
|
|
| 24 |
{"role": "user", "content": input}
|
| 25 |
]
|
| 26 |
|
| 27 |
-
const prompt =
|
| 28 |
tokenize: false, add_generation_prompt: true,
|
| 29 |
});
|
| 30 |
|
|
|
|
| 24 |
{"role": "user", "content": input}
|
| 25 |
]
|
| 26 |
|
| 27 |
+
const prompt = pipe.tokenizer.apply_chat_template(messages, {
|
| 28 |
tokenize: false, add_generation_prompt: true,
|
| 29 |
});
|
| 30 |
|