Well, it’s a long explanation, but when you call a pipeline, various functions are combined and invoked within it on their own.
It would be too much trouble to call them all manually!
The standard setup is so clunky that, well, people probably won’t have trouble with it or so.
And if you’re not satisfied with the normal output, you’ll have to tweak the options, how about this?
I’ve tried to eliminate ambiguity and not include questions.
response = generator(
question,
max_length=50,
do_sample=False,
return_full_text=False,
)