gpt2client icon indicating copy to clipboard operation
gpt2client copied to clipboard

Unable to specify length of output?

Open Emperornero opened this issue 5 years ago • 2 comments

Not much to be said.

When attempting to call the length parameter of gpt-2 generate function, the functioncall fails with "TypeError: generate() got an unexpected keyword argument 'length'"

Is changing the length of the output not supported?

Emperornero avatar Feb 14 '20 20:02 Emperornero

Hello there, I apologise for the sudden errors. I'm in the process of writing a patch over the generate function to allow for more flexibility when generating text. It should be out in the next release. I appreciate your patience!

rish-16 avatar Feb 20 '20 05:02 rish-16

@rish-16 Hello Did you finish adding that feature? or maybe just put that code as gist. Will be helpful for me.

callmetushar123 avatar Oct 17 '20 14:10 callmetushar123