Module api

Source
Expand description

Request and response

Hugging Face has open endpoints that you can use to retrieve information from the Hub as well as perform certain actions such as creating model, dataset or Space repos.

Structs§

CreateRepoReq
Request of crate::client::Client::create_repo
CreateRepoRes
Response of crate::client::Client::create_repo
DeleteRepoReq
Request of crate::client::Client::delete_repo
FailureRes
Error response format of Hugging Face Hub API
GetModelReq
Request of crate::client::Client::get_model
GetModelsReq
Request of crate::client::Client::get_models

Enums§

HuggingFaceRes
Global response format of Hugging Face Hub API

Type Aliases§

GetModelRes
Response of crate::client::Client::get_model
GetModelsRes
Response of crate::client::Client::get_models