Update README.md
Browse files
README.md
CHANGED
@@ -22,10 +22,9 @@ const generator = await pipeline('text-generation', 'Xenova/llama2.c-stories15M'
|
|
22 |
const text = 'Once upon a time,';
|
23 |
const output = await generator(text);
|
24 |
console.log(output);
|
25 |
-
// [{ generated_text: "
|
26 |
|
27 |
const output2 = await generator(text, { max_new_tokens: 50 });
|
28 |
console.log(output2);
|
29 |
// [{ generated_text: "Once upon a time, there was a little girl named Lily. She loved to play outside in the sunshine. One day, she saw a big, dark cloud in the sky. She knew it was going to rain soon.\nLily ran inside her house" }]
|
30 |
-
|
31 |
```
|
|
|
22 |
const text = 'Once upon a time,';
|
23 |
const output = await generator(text);
|
24 |
console.log(output);
|
25 |
+
// [{ generated_text: "Once upon a time, there was a little girl named Lily. She loved to play outside in" }]
|
26 |
|
27 |
const output2 = await generator(text, { max_new_tokens: 50 });
|
28 |
console.log(output2);
|
29 |
// [{ generated_text: "Once upon a time, there was a little girl named Lily. She loved to play outside in the sunshine. One day, she saw a big, dark cloud in the sky. She knew it was going to rain soon.\nLily ran inside her house" }]
|
|
|
30 |
```
|