Spaces:
Sleeping
Sleeping
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", | |
}); | |