A function that sends a request to the HuggingFace API and returns the response.
Source:R/service-huggingface.R
query_api_huggingface.Rd
A function that sends a request to the HuggingFace API and returns the response.
Usage
query_api_huggingface(task, request_body, token = Sys.getenv("HF_API_KEY"))