pub trait ModelLoaderApi {
type Repo: ModelLoaderApiRepo;
// Required methods
fn repo(&self, repo: Repo) -> Self::Repo;
fn model(&self, model_id: String) -> Self::Repo;
}
Expand description
ModelLoaderApi
is a trait that abstracts the API used to retrieve hf repositories.
Primarily used for dependency injection and testing purposes.