Huggingface
Use a model from huggingface.
Use a model from huggingface
Parameters
| Name | Description | Accepted Values | Default | Required |
|---|---|---|---|---|
| I/O | ||||
input | Name of the input column. | string, integer, array | — | Yes |
output | Name of the output column. If not provided, will overwrite the input column. | string, array, null | null | No |
| Options | ||||
parameters | Optionally, provide additional parameters to define the model behaviour. | object, null | null | No |
| Conditions | ||||
if | Condition that determines whether the wrangle runs as a whole. Recipe variables may be referenced with ${variable}. | string | — | No |
where | Filter rows before applying the wrangle using SQL-like criteria, such as column1 = 123 OR column2 = 'abc'. | string | — | No |
where_params | Values used with where for parameterized criteria. Uses SQLite placeholder syntax such as ? or :name. | array, object | — | No |
| Details | ||||
api_token | Huggingface API Token. | string | — | Yes |
model | Name 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
| Requirement | Value |
|---|---|
| AI-powered | No |
| Requires WrangleWorks account | No |
| Requires subscription | No |
| Requires external API key | No |
Technical details
| Field | Value |
|---|---|
| Catalog ID | 79 |
| Catalog key | huggingface |
| Recipe key | huggingface |
| Catalog status | active |
| Lifecycle status | active |
| Recipe Writer eligible | Yes |
| Namespace | Root-level |
| Documentation group | ai |
| Aliases | None |
| Runtime symbol | wrangles.recipe_wrangles.main.huggingface |
| Legacy UUID | ae12cf20-4934-428f-84a9-a6898cb7ffe0 |
Sources