Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
elleo /uk-petition-generator:ff3727b4
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run elleo/uk-petition-generator using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"elleo/uk-petition-generator:ff3727b408d61c949af28e5b25cd51b34a76eccf7d6ce8d46bb4da1f1f38c032",
{
input: {}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run elleo/uk-petition-generator using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run("elleo/uk-petition-generator:ff3727b408d61c949af28e5b25cd51b34a76eccf7d6ce8d46bb4da1f1f38c032")
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run elleo/uk-petition-generator using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "elleo/uk-petition-generator:ff3727b408d61c949af28e5b25cd51b34a76eccf7d6ce8d46bb4da1f1f38c032",
"input": {}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2022-06-01T23:02:16.132160Z",
"created_at": "2022-06-01T23:01:55.069771Z",
"data_removed": false,
"error": null,
"id": "xb2napcnkbcufju3frcb463vge",
"input": {},
"logs": "2022-06-01 23:01:55.162073: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:975] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n2022-06-01 23:01:55.162846: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:975] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n2022-06-01 23:01:55.163437: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:975] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n2022-06-01 23:01:55.164174: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:975] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n2022-06-01 23:01:55.164866: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:975] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n2022-06-01 23:01:55.165472: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1532] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 13793 MB memory: -> device: 0, name: Tesla T4, pci bus id: 0000:00:04.0, compute capability: 7.5\nLoading checkpoint checkpoint/run1/model-1000",
"metrics": {
"predict_time": 20.918309,
"total_time": 21.062389
},
"output": "Petition to ban the use of the word 'recyclist' in the UK\n=================\n\nTo ban the use of the word 'recyclist' in the UK.\n\n",
"started_at": "2022-06-01T23:01:55.213851Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/xb2napcnkbcufju3frcb463vge",
"cancel": "https://api.replicate.com/v1/predictions/xb2napcnkbcufju3frcb463vge/cancel"
},
"version": "ff3727b408d61c949af28e5b25cd51b34a76eccf7d6ce8d46bb4da1f1f38c032"
}
2022-06-01 23:01:55.162073: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:975] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2022-06-01 23:01:55.162846: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:975] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2022-06-01 23:01:55.163437: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:975] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2022-06-01 23:01:55.164174: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:975] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2022-06-01 23:01:55.164866: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:975] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2022-06-01 23:01:55.165472: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1532] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 13793 MB memory: -> device: 0, name: Tesla T4, pci bus id: 0000:00:04.0, compute capability: 7.5
Loading checkpoint checkpoint/run1/model-1000