Skip to main content

build_hf_client

Function build_hf_client 

Source
pub fn build_hf_client() -> Result<HFClient>
Expand description

Build an HFClient from environment, suitable for API calls.

Resolves endpoint from HF_ENDPOINT and token from HF_TOKEN / HUGGING_FACE_HUB_TOKEN.