Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
syogeeshwari opened this issue Dec 15, 2022 · 1 comment
Labels
question Further information is requested

Comments

@syogeeshwari
Copy link

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

@ted537
Copy link
Collaborator

ted537 commented Feb 3, 2023

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 ted537 added the question Further information is requested label Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants