Eurosia (moth)

Eurosia is a genus of moths in the family Erebidae. The genus was erected by George Hampson in 1900.[1]

Eurosia
Scientific classification
Kingdom: Animalia
Phylum: Arthropoda
Class: Insecta
Order: Lepidoptera
Superfamily: Noctuoidea
Family: Erebidae
Subfamily: Arctiinae
Subtribe: Nudariina
Genus: Eurosia
Hampson, 1900

Species

gollark: Does it print `done!` at least?
gollark: I think the issue is that your `bot` is separate from the `client` and never actually started up.
gollark: ·Oh, `bot.run`, right.
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.

References

  1. Savela, Markku. "Eurosia Hampson, 1900". Lepidoptera and Some Other Life Forms. Retrieved October 14, 2019.


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