Run atrifat/topic-classification using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"atrifat/topic-classification:c74c6a243cda049ccee7a465d1cc4c7b4989be1701191854bc4000b967fa5548",
{
input: {
query: "i have already booked the ticket for the concert"
}
}
);
console.log(output);
Run atrifat/topic-classification using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"atrifat/topic-classification:c74c6a243cda049ccee7a465d1cc4c7b4989be1701191854bc4000b967fa5548",
input={
"query": "i have already booked the ticket for the concert"
}
)
print(output)
Pull and run atrifat/topic-classification using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/atrifat/topic-classification@sha256:c74c6a243cda049ccee7a465d1cc4c7b4989be1701191854bc4000b967fa5548 \
-i 'query="i have already booked the ticket for the concert"'
Pull and run atrifat/topic-classification using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/atrifat/topic-classification@sha256:c74c6a243cda049ccee7a465d1cc4c7b4989be1701191854bc4000b967fa5548curl -s -X POST \
-H "Content-Type: application/json" \
-d $'{
"input": {
"query": "i have already booked the ticket for the concert"
}
}' \
http://localhost:5000/predictions