Waterville, Sunbury County, New Brunswick

Waterville is a Canadian rural community in Sunbury County, New Brunswick.

History

Notable people

gollark: ```pythonfrom transformers import GPT2LMHeadModel, GPT2Tokenizerimport discord.extfrom discord.ext import commandsTOKEN = 'NOT TELLING YOU'bot = commands.Bot(command_prefix='$')@bot.eventasync def on_ready(): print("done!")@bot.command()async def test(ctx, arg): inputs = arg # initialize tokenizer and model from pretrained GPT2 model tokenizer = GPT2Tokenizer.from_pretrained('gpt2') model = GPT2LMHeadModel.from_pretrained('gpt2') outputs = model.generate( inputs, max_length=200, do_sample=True, temperature=1, top_k=50 ) response = (tokenizer.decode(outputs[0], skip_special_tokens=True)) await ctx.send(response)client.run(TOKEN)```
gollark: Yes, you can just use `@bot.event` or something.
gollark: This is probably obvious but you're sending it in a channel the bot sees, right?
gollark: Do you need horrible amounts of computing power for this? I could use this for purposes.
gollark: Also that.

See also

References

    This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.