Summary

Functions

Creates a branch. See Hub.Repos.create_branch/3.

Creates a collection. See Hub.Collections.create/1.

Creates a Hub repository. See Hub.Repos.create/2.

Deletes a branch. See Hub.Repos.delete_branch/3.

Deletes a file in a commit. See Hub.Commits.delete_file/2.

Deletes multiple files in a commit. See Hub.Commits.delete_files/2.

Deletes a Hub repository. See Hub.Repos.delete/2.

Downloads a file. See Hub.Repos.download_file/3.

Gets a collection by slug. See Hub.Collections.get/2.

Gets a job's status. See Hub.Jobs.get/3.

Returns the default Hub cache directory. See Hub.Snapshots.default_cache_dir/0.

Returns a lazy stream of collections. See Hub.Collections.list/1.

Returns a lazy stream of models. See Hub.Models.list/1.

Returns detailed metadata for a model. See Hub.Models.get/2.

Handles OAuth redirect and exchanges code for tokens. See Hub.OAuth.handle_redirect/1.

Builds a PKCE OAuth login URL. See Hub.OAuth.login_url/1.

Runs an inference job. See Hub.Jobs.run/2.

Uploads a file in a commit. See Hub.Commits.upload_file/2.

Uploads multiple files in a commit. See Hub.Commits.upload_files/3.

Returns info about the currently authenticated user/org. See Hub.Auth.who_am_i/1.

Functions

create_branch(repo_id, branch_name, opts \\ [])

Creates a branch. See Hub.Repos.create_branch/3.

create_collection(opts \\ [])

Creates a collection. See Hub.Collections.create/1.

create_repo(repo_id, opts \\ [])

Creates a Hub repository. See Hub.Repos.create/2.

delete_branch(repo_id, branch_name, opts \\ [])

Deletes a branch. See Hub.Repos.delete_branch/3.

delete_file(repo_id, opts)

Deletes a file in a commit. See Hub.Commits.delete_file/2.

delete_files(repo_id, opts)

Deletes multiple files in a commit. See Hub.Commits.delete_files/2.

delete_repo(repo_id, opts \\ [])

Deletes a Hub repository. See Hub.Repos.delete/2.

download_file(repo_id, file_path, opts \\ [])

Downloads a file. See Hub.Repos.download_file/3.

get_collection(slug, opts \\ [])

Gets a collection by slug. See Hub.Collections.get/2.

get_job(namespace, job_id, opts \\ [])

Gets a job's status. See Hub.Jobs.get/3.

hub_cache_dir()

Returns the default Hub cache directory. See Hub.Snapshots.default_cache_dir/0.

list_collections(opts \\ [])

Returns a lazy stream of collections. See Hub.Collections.list/1.

list_models(opts \\ [])

Returns a lazy stream of models. See Hub.Models.list/1.

model_info(repo_id, opts \\ [])

Returns detailed metadata for a model. See Hub.Models.get/2.

oauth_handle_redirect(opts)

Handles OAuth redirect and exchanges code for tokens. See Hub.OAuth.handle_redirect/1.

oauth_login_url(opts \\ [])

Builds a PKCE OAuth login URL. See Hub.OAuth.login_url/1.

run_job(namespace, opts \\ [])

Runs an inference job. See Hub.Jobs.run/2.

upload_file(repo_id, opts)

Uploads a file in a commit. See Hub.Commits.upload_file/2.

upload_files(repo_id, files, opts \\ [])

Uploads multiple files in a commit. See Hub.Commits.upload_files/3.

who_am_i(opts \\ [])

Returns info about the currently authenticated user/org. See Hub.Auth.who_am_i/1.