hf-hub-simple-progress
A simpler approach to hf-hub Progress trait
Basically hf-hub#70 built on top hf-hub#80
Usage
Sync
use ;
use ApiBuilder;
use ;
let done = new;
let done_copy = done.clone;
let api = new.build.unwrap;
let callback = callback_builder;
api.model
.download_with_progress
.unwrap;
assert!;
Async
See the test section in the async_closure module.
Requires async_fn_traits, unboxed_closures nightly features