From cc0e3e58100a2f2ba7e3e620fccea668c003a1c5 Mon Sep 17 00:00:00 2001 From: Joshua Lochner Date: Wed, 8 Nov 2023 17:45:50 +0200 Subject: [PATCH] Improve text2text-generation output in docs --- docs/source/pipelines.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/source/pipelines.md b/docs/source/pipelines.md index 3d9766049..93f4ee216 100644 --- a/docs/source/pipelines.md +++ b/docs/source/pipelines.md @@ -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.