Skip to main content

Huggingface

Use a model from huggingface.

Use a model from huggingface

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName of the input column.string, integer, array—Yes
outputName of the output column. If not provided, will overwrite the input column.string, array, nullnullNo
Options
parametersOptionally, provide additional parameters to define the model behaviour.object, nullnullNo
Conditions
ifCondition that determines whether the wrangle runs as a whole. Recipe variables may be referenced with ${variable}.string—No
whereFilter rows before applying the wrangle using SQL-like criteria, such as column1 = 123 OR column2 = 'abc'.string—No
where_paramsValues used with where for parameterized criteria. Uses SQLite placeholder syntax such as ? or :name.array, object—No
Details
api_tokenHuggingface API Token.string—Yes
modelName of the model to use. e.g. facebook/bart-large-cnn.string—Yes

Examples​

This template uses a Hugging Face summarization model. The exact response shape and text depend on the selected model.

wrangles:
- huggingface:
input:
- Product Description
output:
- Summary
api_token: Your Hugging Face API token
model: facebook/bart-large-cnn
Product Description
A cordless drill with two batteries, a charger, and a compact carrying case.
Summary
Cordless drill kit with batteries, charger, and case.

Template based on the documented parameters; no published source example is currently available.

Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID79
Catalog keyhuggingface
Recipe keyhuggingface
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
NamespaceRoot-level
Documentation groupai
AliasesNone
Runtime symbolwrangles.recipe_wrangles.main.huggingface
Legacy UUIDae12cf20-4934-428f-84a9-a6898cb7ffe0

Sources