Views
No views yet
.jpg, .png, etc.)coolwarmneutral1from huggingface_hub import InferenceClient
2
3client = InferenceClient("https://huggingface.co/Empire72/ronaundertone-detector")
4
5with open("my_wrist.jpg", "rb") as f:
6 result = client.post(
7 json=None,
8 data=f,
9 headers={"Content-Type": "image/jpeg"},
10 )
11
12print(result.json())