Skip to content

API's are not working properly with NodeJS #1

@bhuvaneshwar97

Description

@bhuvaneshwar97

(async () => {
try {
const response_0 = await fetch("https://huggingface.co/spaces/AP123/IllusionDiffusion/blob/main/funky.jpeg");
const exampleImage = await response_0.blob();
const app = await client("https://ap123-illusiondiffusion.hf.space/");
const response = await app.predict(1, ["beautiful nature", exampleImage]);
console.log(response);
} catch (error) {
console.error('Error while making the request:', error);
}
})();

OUTPUT:-
Error while making the request: {
type: 'status',
stage: 'error',
message: "Cannot read properties of undefined (reading 'map')",
endpoint: '/predict',
fn_index: 1,
queue: false,
time: 2023-11-05T18:54:00.032Z
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions