modelhub-port

v0.1.0
io.github.CloudCorpRecords/modelhub-port Checked 4 days ago Published 1 month ago

Search and inspect Hugging Face models, datasets, spaces, papers and docs.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

hf_whoami

Return the Hugging Face account that the configured HF_TOKEN belongs to.

hub_repo_details

Get details for a Hugging Face model, dataset, or space repository.

ParameterTypeDescription
repo_id *stringThe repository identifier (e.g. 'owner/name') to retrieve details for.
repo_typestringOptional repository type selecting the namespace: 'models', 'datasets', or 'spaces' (default 'models'; singular forms are also accepted).
revisionstringOptional revision (branch, tag, or commit) to query for this repository.

hf_doc_fetch

Fetch a Hugging Face documentation page and return its text.

ParameterTypeDescription
url *stringThe URL of the Hugging Face documentation page to fetch (must be a https://huggingface.co/docs/... page).

list_repo_files

List files in a Hugging Face model, dataset, or space repository.

ParameterTypeDescription
repo_id *stringThe repository identifier (e.g. 'owner/name') whose files to list.
pathstringOptional subdirectory path within the repository to list files under.
repo_typestringOptional repository type selecting the namespace: 'models', 'datasets', or 'spaces' (default 'models'; singular forms are also accepted).
revisionstringOptional revision (branch, tag, or commit) whose file tree to list (default 'main').