hf_vectorize: Vectorize API Calls

View source: R/utils.R

hf_vectorizeR Documentation

Vectorize API Calls

Description

Internal helper to apply an API function to multiple inputs efficiently.

Usage

hf_vectorize(inputs, fn, ..., .progress = FALSE)

Arguments

inputs

Character vector of inputs.

fn

Function to apply to each input.

...

Additional arguments passed to fn.

.progress

Logical. Show progress bar?

Value

Combined results from all API calls.


huggingfaceR documentation built on Aug. 30, 2026, 1:06 a.m.