HuggingFace Clone for ML, Node.js API

Job ID: 38533893

Budget: €8 – €30 EUR

We need a freelancer to copy a space from the Hugging Face "Kolors-Virtual-Try-On" and make it fully functional. The project involves:

Cloning the Hugging Face Space.
Fixing issues related to environment variables and configuration.
Integrating with Node.js.
Providing a working script that ensures the cloned space operates correctly.
Requirements:

Experience with Hugging Face Spaces.
Knowledge of Python and Node.js.
Ability to troubleshoot and resolve configuration issues.
Experience in providing functional scripts.
Additional Info: We are encountering various errors and need help from someone who understands Hugging Face Spaces and Node.js integration.

####example, doesnt work
console.log("Vorhersage gestartet");

// Bilder herunterladen
const response_0 = await fetch("/input.jpg");
const inputImage = await response_0.blob();

const response_1 = await fetch("/output.jpg");
const outputImage = await response_1.blob();

const inputPath = await uploadFileToSpace(inputImage, 'input.jpg');
const outputPath = await uploadFileToSpace(outputImage, 'output.jpg');


const client = await Client.connect("Kwai-Kolors/Kolors-Virtual-Try-On", {

});

const result = await client.predict("/tryon", {
person_img: (inputImage),
garment_img: (outputImage),
seed:0, // seed
randomize_seed: true // randomize_seed
});
Related categories: Node.js Hugging Face