Updated README.md with pipeline example

#17
by yj2773 - opened

Added this small snippet using transformers.Text2TextGenerationPipeline for ease of use.

It's nice, but the results are too small, how can we enlarge the output parameter?

from transformers import pipeline
generator = pipeline(model="humarin/chatgpt_paraphraser_on_T5_base")

generator('women dirndl (trousers) from the outerwear category, in red colour featuring a yarn dyed design with a zip neckline, made of nylon material.', num_return_sequences=1, do_sample=False)

[{'generated_text': "A red-colored outerwear item, the c&a women's dirndl"}]

I would like a better paraphrase in it

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment