View source: R/service-huggingface.R
query_api_huggingface | R Documentation |
A function that sends a request to the HuggingFace API and returns the response.
query_api_huggingface(task, request_body, token = Sys.getenv("HF_API_KEY"))
task |
A character string that specifies the task to send to the API. |
request_body |
A list that contains the parameters for the task. |
token |
String containing a HuggingFace API key. Defaults to the HF_API_KEY environmental variable if not specified. |
The response from the API.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.