hf-hub icon indicating copy to clipboard operation
hf-hub copied to clipboard

Token file not found "token"

Open harshakhmk opened this issue 10 months ago • 3 comments

I am using fastembed-rs package, to create embeddings for text input While I am running my application as a shared library on Android, it is giving below error

hf_hub: Token file not found "token"
ureq:::stream connecting to huggingface.co 


use hf_hub::api::sync::Api;

let api = Api::new().unwrap();

let repo = api.model("bert-base-uncased".to_string());
let _filename = repo.get("config.json").unwrap();

// filename  is now the local location within hf cache of the config.json file

harshakhmk avatar Apr 03 '24 11:04 harshakhmk