From c1beec211acb9b967a55d79a2765933337a39a50 Mon Sep 17 00:00:00 2001 From: wfjsw Date: Sat, 10 Aug 2024 01:44:50 -0500 Subject: [PATCH] fix --- .script/hub.ts | 4 ++++ 1 file changed, 4 insertions(+) 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) {