Email Hugging Face image label on Webhooks event
Classify an image at a public URL with a Hugging Face vision model and return the top label and score.
Developer info
- API endpoint slug
- hugging_face.run_image_classification
- Runtime method
- performQuery("hugging_face.run_image_classification"}
Query fields
Model Text input > Other
- Label
- Model
- Helper text
- The Hugging Face model ID of an image-classification model, e.g. google/vit-base-patch16-224.
- Slug
- model_id
- Required
- true
- Can have default value
- true
Image url Text input > Other
- Label
- Image URL
- Helper text
- A public URL of the image to classify.
- Slug
- image_url
- Required
- true
- Can have default value
- true
Ingredients
Label The top predicted label.
- Slug
- label
- Filter code
- HuggingFace.runImageClassification.Label
- Type
- String
- Example
- Egyptian cat
Score The confidence score for the top label, between 0 and 1.
- Slug
- score
- Filter code
- HuggingFace.runImageClassification.Score
- Type
- String
- Example
- 0.9374
Model The model that produced the classification.
- Slug
- model_id
- Filter code
- HuggingFace.runImageClassification.ModelId
- Type
- String
- Example
- google/vit-base-patch16-224
