typetext
{
"input_str": "\"Mukesh Dhirubhai Ambani (19-04-1957) is an Indian billionaire businessman. He is currently the chairman and managing director of Reliance Industries, India's most valuable company by market value. Resides at Antilla, No 10, Haji road, Mumbai\""
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_YWZ**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run kshitijagrwl/pii-extractor-llm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"kshitijagrwl/pii-extractor-llm:7f1878a3d7a75d72c873f7d451a331f184fcbd89fb905d3fbb579606bc533af9",
{
input: {
input_str: "\"Mukesh Dhirubhai Ambani (19-04-1957) is an Indian billionaire businessman. He is currently the chairman and managing director of Reliance Industries, India's most valuable company by market value. Resides at Antilla, No 10, Haji road, Mumbai\""
}
}
);
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=r8_YWZ**********************************
This is your API token. Keep it to yourself.
import replicate
Run kshitijagrwl/pii-extractor-llm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"kshitijagrwl/pii-extractor-llm:7f1878a3d7a75d72c873f7d451a331f184fcbd89fb905d3fbb579606bc533af9",
input={
"input_str": "\"Mukesh Dhirubhai Ambani (19-04-1957) is an Indian billionaire businessman. He is currently the chairman and managing director of Reliance Industries, India's most valuable company by market value. Resides at Antilla, No 10, Haji road, Mumbai\""
}
)
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=r8_YWZ**********************************
This is your API token. Keep it to yourself.
Run kshitijagrwl/pii-extractor-llm 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": "kshitijagrwl/pii-extractor-llm:7f1878a3d7a75d72c873f7d451a331f184fcbd89fb905d3fbb579606bc533af9",
"input": {
"input_str": "\\"Mukesh Dhirubhai Ambani (19-04-1957) is an Indian billionaire businessman. He is currently the chairman and managing director of Reliance Industries, India\'s most valuable company by market value. Resides at Antilla, No 10, Haji road, Mumbai\\""
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{"name": "Mukesh Dhirubhai Ambani", "fatherName": "NA", "address": "at antilla, no 10, haji road, mumbai", "dob": "19-04-1957"}{
"id": "6q3jmzjbrgwbz4krur2lhhjyge",
"model": "kshitijagrwl/pii-extractor-llm",
"version": "7f1878a3d7a75d72c873f7d451a331f184fcbd89fb905d3fbb579606bc533af9",
"input": {
"input_str": "\"Mukesh Dhirubhai Ambani (19-04-1957) is an Indian billionaire businessman. He is currently the chairman and managing director of Reliance Industries, India's most valuable company by market value. Resides at Antilla, No 10, Haji road, Mumbai\""
},
"logs": "",
"output": "{\"name\": \"Mukesh Dhirubhai Ambani\", \"fatherName\": \"NA\", \"address\": \"at antilla, no 10, haji road, mumbai\", \"dob\": \"19-04-1957\"}",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-07-25T08:36:33.106011Z",
"started_at": "2023-07-25T08:36:33.072814Z",
"completed_at": "2023-07-25T08:36:33.169167Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/6q3jmzjbrgwbz4krur2lhhjyge/cancel",
"get": "https://api.replicate.com/v1/predictions/6q3jmzjbrgwbz4krur2lhhjyge"
},
"metrics": {
"predict_time": 0.096353,
"total_time": 0.063156
}
}