elleo / uk-petition-generator
Generate petitions suitable for sending to the UK government
- Public
- 108 runs
-
T4
- GitHub
Prediction
elleo/uk-petition-generator:ff3727b408d61c949af28e5b25cd51b34a76eccf7d6ce8d46bb4da1f1f38c032IDbqbojaqttvh77du7xizgrx3ozeStatusSucceededSourceWebHardware–Total durationCreatedInput
{}
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client: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.
Install Replicate’s Python client library:pip install replicate
Import the client: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.
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.
Output
More people need safe driving laws ================= In the UK, there is a law that states that a person hit by a car should be fined a penny and in many cases even the driver of the car can be prosecuted. There are drivers who have been caught driving with a vehicle at fault and the cost to the taxpayer is far too much. HOWEVER, the law needs to be changed, drivers who hit a vehicle should be fined a penny and the driver of the vehicle can be prosecuted for causing the death of any other vehicle, and the cost of prosecution will be far more than the driver of the vehicle.{ "completed_at": "2022-06-05T15:45:05.157642Z", "created_at": "2022-06-05T15:43:21.006920Z", "data_removed": false, "error": null, "id": "bqbojaqttvh77du7xizgrx3oze", "input": {}, "logs": "2022-06-05 15:44:41.116463: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA\nTo enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.\n2022-06-05 15:44:41.164548: 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-05 15:44:41.268052: 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-05 15:44:41.268887: 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-05 15:44:42.131294: 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-05 15:44:42.132061: 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-05 15:44:42.132834: 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-05 15:44:42.133553: 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\n2022-06-05 15:44:44.161335: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:354] MLIR V1 optimization pass is not enabled\nLoading checkpoint checkpoint/run1/model-1000\n2022-06-05 15:44:48.048957: 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-05 15:44:48.049732: 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-05 15:44:48.050314: 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", "metrics": { "predict_time": 24.854261, "total_time": 104.150722 }, "output": "More people need safe driving laws\n=================\n\nIn the UK, there is a law that states that a person hit by a car should be fined a penny and in many cases even the driver of the car can be prosecuted. There are drivers who have been caught driving with a vehicle at fault and the cost to the taxpayer is far too much.\nHOWEVER, the law needs to be changed, drivers who hit a vehicle should be fined a penny and the driver of the vehicle can be prosecuted for causing the death of any other vehicle, and the cost of prosecution will be far more than the driver of the vehicle.\n", "started_at": "2022-06-05T15:44:40.303381Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/bqbojaqttvh77du7xizgrx3oze", "cancel": "https://api.replicate.com/v1/predictions/bqbojaqttvh77du7xizgrx3oze/cancel" }, "version": "ff3727b408d61c949af28e5b25cd51b34a76eccf7d6ce8d46bb4da1f1f38c032" }
Generated in2022-06-05 15:44:41.116463: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2022-06-05 15:44:41.164548: 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-05 15:44:41.268052: 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-05 15:44:41.268887: 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-05 15:44:42.131294: 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-05 15:44:42.132061: 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-05 15:44:42.132834: 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-05 15:44:42.133553: 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 2022-06-05 15:44:44.161335: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:354] MLIR V1 optimization pass is not enabled Loading checkpoint checkpoint/run1/model-1000 2022-06-05 15:44:48.048957: 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-05 15:44:48.049732: 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-05 15:44:48.050314: 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
Prediction
elleo/uk-petition-generator:ff3727b408d61c949af28e5b25cd51b34a76eccf7d6ce8d46bb4da1f1f38c032IDiujefwkwvfbt7lyyvp4iertkgiStatusSucceededSourceWebHardware–Total durationCreatedInput
{}
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client: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.
Install Replicate’s Python client library:pip install replicate
Import the client: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.
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.
Output
NHS to be a "good NHS" ================= The government says that it is "heartily" pursuing the NHS by citing its "financial success" and its capacity to pay for itself. As a result of this the NHS will be "a good NHS" and not a "bad NHS" as currently stands. It is time for the government to recognise the NHS and recognise that its an important part of society in a better way.{ "completed_at": "2022-06-01T22:26:19.635998Z", "created_at": "2022-06-01T22:25:51.380023Z", "data_removed": false, "error": null, "id": "iujefwkwvfbt7lyyvp4iertkgi", "input": {}, "logs": "2022-06-01 22:25:51.485822: 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 22:25:51.486689: 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 22:25:51.487296: 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 22:25:51.488123: 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 22:25:51.488881: 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 22:25:51.489632: 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": 28.13429, "total_time": 28.255975 }, "output": "NHS to be a \"good NHS\"\n=================\n\nThe government says that it is \"heartily\" pursuing the NHS by citing its \"financial success\" and its capacity to pay for itself. As a result of this the NHS will be \"a good NHS\" and not a \"bad NHS\" as currently stands. It is time for the government to recognise the NHS and recognise that its an important part of society in a better way.\n", "started_at": "2022-06-01T22:25:51.501708Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/iujefwkwvfbt7lyyvp4iertkgi", "cancel": "https://api.replicate.com/v1/predictions/iujefwkwvfbt7lyyvp4iertkgi/cancel" }, "version": "ff3727b408d61c949af28e5b25cd51b34a76eccf7d6ce8d46bb4da1f1f38c032" }
Generated in2022-06-01 22:25:51.485822: 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 22:25:51.486689: 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 22:25:51.487296: 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 22:25:51.488123: 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 22:25:51.488881: 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 22:25:51.489632: 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
Prediction
elleo/uk-petition-generator:ff3727b408d61c949af28e5b25cd51b34a76eccf7d6ce8d46bb4da1f1f38c032IDxb2napcnkbcufju3frcb463vgeStatusSucceededSourceWebHardware–Total durationCreatedInput
{}
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client: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.
Install Replicate’s Python client library:pip install replicate
Import the client: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.
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.
Output
Petition to ban the use of the word 'recyclist' in the UK ================= To ban the use of the word 'recyclist' in the UK.{ "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" }
Generated in2022-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
Want to make some of these yourself?
Run this model