mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 02:38:10 +00:00
Upgrading hf-hub to 0.2.0
(Modified API to not pass the Repo around
all the time)
This commit is contained in:
@ -69,10 +69,11 @@ impl Args {
|
||||
)
|
||||
} else {
|
||||
let api = Api::new()?;
|
||||
let api = api.repo(repo);
|
||||
(
|
||||
api.get(&repo, "config.json")?,
|
||||
api.get(&repo, "tokenizer.json")?,
|
||||
api.get(&repo, "model.safetensors")?,
|
||||
api.get("config.json")?,
|
||||
api.get("tokenizer.json")?,
|
||||
api.get("model.safetensors")?,
|
||||
)
|
||||
};
|
||||
let config = std::fs::read_to_string(config_filename)?;
|
||||
|
Reference in New Issue
Block a user