Recent
Recommendations
Webhooks
Service
X (Twitter)
Service
YouTube
Service
Discord
Service
Google Sheets
Service
MyQ
Service
Gmail
Service
Instagram
Service
See all results
Explore
Plans
Log in
Get started
Mobile menu
Close menu
Back
Hugging Face
Run text classification
Classify a piece of text with a Hugging Face classifier model and return the top label and score.
Developer info
API endpoint slug
hugging_face.run_text_classification
Runtime method
performQuery("hugging_face.run_text_classification"}
Query fields
Model
Text input > Other
Label
Model
Helper text
The Hugging Face model ID of a text-classification model, e.g. distilbert/distilbert-base-uncased-finetuned-sst-2-english.
Slug
model_id
Required
true
Can have default value
true
Text
Text input
Label
Text
Helper text
The text to classify.
Slug
text
Required
true
Can have default value
true
Ingredients
Label
The top predicted label.
Slug
label
Filter
HuggingFace.runTextClassification.Label
Type
String
Example
POSITIVE
Score
The confidence score for the top label, between 0 and 1.
Slug
score
Filter
HuggingFace.runTextClassification.Score
Type
String
Example
0.9998
Model
The model that produced the classification.
Slug
model_id
Filter
HuggingFace.runTextClassification.ModelId
Type
String
Example
distilbert/distilbert-base-uncased-finetuned-sst-2-english
Applets using this Query
Send Hugging Face classification to Notifications
by
Button widget
Post Hugging Face classification to Slack
by
Webhooks
Classify text with Hugging Face and notify via Pushcut
by
Google
Email Hugging Face classification results
by
Webhooks