IS361Group4's picture
สร้าง app.py สำหรับ Image Classification
1ae1c5d verified
raw
history blame
255 Bytes
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",
});