Skip to content

Commit

Permalink
Improve text2text-generation output in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
xenova committed Nov 8, 2023
1 parent 10b10ed commit cc0e3e5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/source/pipelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,10 @@ let result = await poet('Write me a love poem about cheese.', {
temperature: 0.9,
repetition_penalty: 2.0,
no_repeat_ngram_size: 3,

// top_k: 20,
// do_sample: true,
});
```

which outputs:
Logging `result[0].generated_text` to the console gives:

```
Cheese, oh cheese! You're the perfect comfort food.
Expand Down

0 comments on commit cc0e3e5

Please sign in to comment.