diff --git a/.script/hub.ts b/.script/hub.ts index 2aa00ed..24b3f45 100644 --- a/.script/hub.ts +++ b/.script/hub.ts @@ -18,6 +18,10 @@ export async function getFiles(repoId: string, revision: string) { credentials: { accessToken: HF_TOKEN }, }); for await (const file of remoteFiles) { + if (file.type !== "file") { + continue; + } + let sha256 = file.lfs?.oid; if (!sha256) {