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

Connection Timeout

Open Jordan-Haidee opened this issue 1 year ago • 10 comments

In my Windows OS, when I run the example:

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

fn main() {
    let api = Api::new().unwrap();

    let repo = api.model("bert-base-uncased".to_string());
    let _filename = repo.get("config.json").unwrap();
}
  • It always raise Connect Timeout exception. I tried to use proxy, but it didn't work too.
  • If using Python huggingface_hub package, the exception didn't happen. image

Jordan-Haidee avatar Jan 13 '24 02:01 Jordan-Haidee