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§

ArxivPaperReq
Request of crate::client::Client::arxiv_paper
ArxivReposReq
Request of crate::client::Client::arxiv_repos
ArxivReposRes
Response of crate::client::Client::arxiv_repos
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
GetDatasetReq
Request of crate::client::Client::get_dataset
GetDatasetTagRes
Response of crate::client::Client::get_dataset_tags
GetModelReq
Request of crate::client::Client::get_model
GetModelTagsRes
Response of crate::client::Client::get_model_tags
GetSpaceReq
Request of crate::client::Client::get_space
MoveRepoReq
Request of crate::client::Client::move_repo
SearchReq

Enums§

HuggingFaceRes
Global response format of Hugging Face Hub API

Type Aliases§

ArxivDailyRes
Request of crate::client::Client::arxiv_daily
ArxivPaperRes
Request of crate::client::Client::arxiv_paper
GetDatasetRes
Response of crate::client::Client::get_dataset
GetMetricsRes
Response of crate::client::Client::get_metrics
GetModelRes
Response of crate::client::Client::get_model
GetSpaceRes
Response of crate::client::Client::get_space
SearchDatasetReq
Request of crate::client::Client::search_dataset
SearchDatasetRes
Response of crate::client::Client::search_dataset
SearchModelReq
Request of crate::client::Client::search_model
SearchModelRes
Response of crate::client::Client::search_model
SearchSpaceReq
Request of crate::client::Client::search_space
SearchSpaceRes
Response of crate::client::Client::search_space