node.js error

#10
by tomcas - opened

import { Client } from "@gradio/client";

const response = await fetch(
"https://smilingwolf-wd-tagger.hf.space/file=/tmp/gradio/f3eb0d1e23a6c503e5ab8a105370a76449123699/power.jpg"
);
const audio_file = await response.blob();

const app = await Client.connect("https://smilingwolf-wd-tagger.hf.space");
console.log(app.view_api());

const result = await app.predict("/predict", [audio_file, "SmilingWolf/wd-swinv2-tagger-v3", 0.35, false, 0.85, false,]);
console.log(result);

error:

node:internal/process/esm_loader:46
internalBinding('errors').triggerUncaughtException(
^
{
type: 'status',
endpoint: '/predict',
fn_index: 2,
time: 2024-05-25T19:38:51.468Z,
queue: true,
message: null,
stage: 'error',
code: undefined,
success: false
}

I don't see an actionable item for me here. Care to elaborate?

Sign up or log in to comment