Readme
This model doesn't have a readme.
(Updated 1 year, 3 months ago)
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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run zelenioncode/webcustomer using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"zelenioncode/webcustomer:315c8cb0f1eb323be372537c7b086321845285cfc14714ecfddf1768ee4236ec",
{
input: {
gender: "woman",
prompt: "portrait photo of casual sophisticated man, looking camera, yellow background, classic side part, yellow turtleneck sweater, skin imperfections, 8k uhd, dsir, soft lighting, high quality, film grain, Fujifilm XT3",
json_data: "{\"style\":[{\"background\":\"white\",\"clothes\":\"white shirt\",\"number_picture\":12},{\"background\":\"office\",\"clothes\":\"blue polo\",\"number_picture\":12},{\"background\":\"white\",\"clothes\":\"black sweater\",\"number_picture\":4},{\"background\":\"white\",\"clothes\":\"blue polo\",\"number_picture\":5}]}",
negative_prompt: "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, BadDream, UnrealisticDream",
link_safetensors: "https://huggingface.co/SG161222/RealVisXL_V3.0/resolve/main/RealVisXL_V3.0.safetensors?download=true"
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
No output yet! Press "Submit" to start a prediction.
This model runs on Nvidia L40S GPU hardware. We don't yet have enough runs of this model to provide performance information.
This model doesn't have a readme.