Open sneezeparty opened 1 year ago
return_as_list=False
I think you want this to be true, else generate
doesn't return anything.
return_as_list=False
I think you want this to be true, else
generate
doesn't return anything.
This fixed the issue. I can't believe myself. Thanks so much.
I'm using the below code to try and set up a simple Discord bot. The bot runs, appears in the correct channel, and so on. When I @tag the bot, it seems to generate a response. In the console window, a response is visible that seems to have been generated by my finetuned model. My dataset is formatted correctly, I think. And again, the confusing part of this is that a response is displayed in the console where I've launched the bot.
However, I get the error "Sorry, I was unable to generate a response" which, according to the code, means that gpt2.generate has returned "None."
Any help would be greatly appreciated. I'm not really a developer, I'm just doing this for fun.