1from huggingface_hub import InferenceClient
2
3client = InferenceClient("Pruddie/kikuyu-resnet50-onnx")
4image_path = "sample.jpg"
5
6with open(image_path, "rb") as f:
7 result = client.post("/predict", files={"image": f})
8
9print(result.json())