The worker reads README.md when it scans the models folder (the web
app can't see it) and stores it on the folder and, after import, on
the model; every scan refreshes it for local models. Relative images
and links are dropped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- listFiles() keeps the last trees it fetched by repo@SHA (a commit's files
never change; capped at 50,000 files): adding a model right after the lookup
no longer downloads the whole tree again. Callers get copies.
- addModel() fetches the author's avatar in parallel with the file list.
- The Hub check resolves revisions with resolveRevision(): /revision/<rev> with
expand=sha, as huggingface_hub's model_info(expand=...) does, instead of the
full model info (file list, card data, the Spaces using the model). Falls
back to the full request if an answer comes without a SHA.
- The Model card tab renders inside <Suspense>: the page no longer waits for
the README to arrive from the Hub (up to the 20 s timeout when it's slow).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EooZ9biu7kFNB4eDJrwQc5
- Model URLs are the repo path (case-insensitive, canonical redirect);
/models/<id> redirects
- Header with avatar, org/name + copy, task/format/arch/language/license
pills, user tags, cross-links to the Hub (files @ sha, commits, community,
base model) and tabs: rendered model card at the pinned commit, files, jobs
- Sidebar: download card, local copy, model tree with related local models
- Metadata gains author avatar and base relation (refetched once)
- Proxy matcher excludes only exact /login and /api/auth/ paths
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>