happy-transformer icon indicating copy to clipboard operation
happy-transformer copied to clipboard

can we use a list of sentences inside generate_text, it seems to accept only string?

Open syogeeshwari opened this issue 2 years ago • 1 comments

Kindly let me know whether we can give a list of sentences as input to generate_text?

syogeeshwari avatar Dec 15 '22 13:12 syogeeshwari

This might be worth considering for performance if any batching is possible, but in terms of functionality, you should be able to loop over the list of sentences yourself.

generate_results = [ happy_gen.generate_text(sentence) for sentence in sentences ]

ted537 avatar Feb 03 '23 19:02 ted537