jmikedupont2 / ai-ticket

The AI and Human powered ticket system to manage your AI based code generation with tickets
MIT License
20 stars 11 forks source link

test user ticket #30

Open Deadsg opened 9 months ago

Deadsg commented 9 months ago

import torch from transformers import GPT2LMHeadModel, GPT2Tokenizer

class AutoGPTAgent: def init(self): self.commands = { "generate": self.generate_text,

Add more commands as needed

    }
    self.tokenizer = GPT2Tokenizer.from_pretrained("gpt2")
    self.model = GPT2LMHeadModel.from_pretrained("gpt2")

def generate_text(self, args):
    # Join the arguments into a single string
    prompt = " ".join(args)

    # Encode the prompt and generate the text
    inputs = self.tokenizer.encode(prompt, return_tensors="pt")
    outputs = self.model.generate(inputs, max_length=100, temperature=0.7)

    # Decode the generated text and print it
    generated_text = self.tokenizer.decode(outputs[0])
    print(generated_text)

def process_command(self, command, args):
    if command in self.commands:
        self.commandscommand
    else:
        print(f"Unknown command: {command}")

Usage:

agent = AutoGPTAgent() agent.process_command("generate", ["Hello, world!"])

jmikedupont2 commented 9 months ago

/agent-action test

jmikedupont2 commented 9 months ago

/agent-action test

jmikedupont2 commented 9 months ago

/agent-action tst

jmikedupont2 commented 9 months ago

/agent-action tst2

jmikedupont2 commented 9 months ago

/agent-action tst2

jmikedupont2 commented 9 months ago

/agent-action tst2

jmikedupont2 commented 9 months ago

/agent-action test again

jmikedupont2 commented 9 months ago

/agent-action funk master flex

jmikedupont2 commented 9 months ago

/agent-action funk master flex talking stuff

jmikedupont2 commented 9 months ago

/agent-action funk master flex talking stuff

jmikedupont2 commented 9 months ago

/agent-action rake it up!

jmikedupont2 commented 9 months ago

/agent-action Tell all the bots to rake it up!

jmikedupont2 commented 9 months ago

/agent-action rake it up!

jmikedupont2 commented 9 months ago

/agent-action merge autogpt

jmikedupont2 commented 9 months ago

/agent-action merge autogpt2

jmikedupont2 commented 9 months ago

/agent-action test

jmikedupont2 commented 9 months ago

/agent-action please run

jmikedupont2 commented 9 months ago

/agent-action run the jewels

jmikedupont2 commented 9 months ago

/agent-action fork the repor

jmikedupont2 commented 9 months ago

/agent-action fork the repo

jmikedupont2 commented 9 months ago

/agent-action document the steps

jmikedupont2 commented 9 months ago

/agent-action yoda

jmikedupont2 commented 9 months ago

/agent-action mando

jmikedupont2 commented 9 months ago

/agent-action try again

jmikedupont2 commented 9 months ago

/agent-action batsignal

jmikedupont2 commented 9 months ago

/agent-action batsignal

jmikedupont2 commented 9 months ago

/agent-action batsy

jmikedupont2 commented 9 months ago

/agent-action send bat signal

jmikedupont2 commented 9 months ago

/agent-action send bat signal

jmikedupont2 commented 9 months ago

/agent-action send bat signal , batman

jmikedupont2 commented 9 months ago

/agent-action send bat signal , again

jmikedupont2 commented 9 months ago

/agent-action please work

jmikedupont2 commented 9 months ago

/agent-action funk master flex

jmikedupont2 commented 9 months ago

/agent-action bach

jmikedupont2 commented 9 months ago

/agent-action help

jmikedupont2 commented 9 months ago

/agent-action helpme

jmikedupont2 commented 9 months ago

/agent-action pray

jmikedupont2 commented 9 months ago

/agent-action pray again

jmikedupont2 commented 9 months ago

/agent-action nobody expects the spanish inquisition

jmikedupont2 commented 9 months ago

/agent-action argment clinic

jmikedupont2 commented 9 months ago

/agent-action argumentation clinic

jmikedupont2 commented 9 months ago

/agent-action if you first dont succeed

jmikedupont2 commented 9 months ago

/agent-action if you first dont succeed try again

jmikedupont2 commented 9 months ago

/agent-action if you first dont succeed, try again for for four hours please.

jmikedupont2 commented 9 months ago

/agent-action if you first dont succeed, try again for for four hours please.

jmikedupont2 commented 9 months ago

/agent-action get the popcorn && send 3Eth to @maxwellsmart && %100

jmikedupont2 commented 9 months ago

/agent-action retry to get the popcorn && send 3Eth to @maxwellsmart && %100 &&make me a ham sandwich please.

jmikedupont2 commented 9 months ago

/agent-action try to get the popcorn && send 3Eth to @maxwellsmart && %100 &&make me a ham sandwich please.

jmikedupont2 commented 9 months ago

/agent-action nope Yup

jmikedupont2 commented 9 months ago

/agent-action update