Spaces:
Sleeping
Sleeping
File size: 255 Bytes
1ae1c5d |
1 2 3 4 5 6 7 8 |
import { InferenceClient } from "@huggingface/inference";
const inference = new InferenceClient(HF_TOKEN);
await inference.imageClassification({
data: await (await fetch("https://picsum.photos/300/300")).blob(),
model: "microsoft/resnet-50",
});
|