- Rename the app to Kaname - Hub metadata per model (base models, architecture, license, Hub tags), backfilled by the worker for existing models - Library search across repo/author/family/quant/tags and multi-select facet filters (author, family, quant, tag, status) kept in the URL - Custom tags (model page editor, on add, click-to-filter) - README rewritten around a quick install, with banner and screenshots - deploy/compose.yaml: models in a host folder (KANAME_MODELS_DIR) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2167ea0950
commit
67191b3e16
37 files changed
+2028
-206
No files matched your search
@@ -2,6 +2,7 @@
|
||||
// Server-side only: it reads HF_TOKEN from the environment. Never import from client components.
|
||||
|
||||
import { coreEnv } from "@/lib/env";
|
||||
import { parseRepoMetadata, type RepoMetadata } from "./metadata";
|
||||
|
||||
const HUB = "https://huggingface.co";
|
||||
const TIMEOUT_MS = 20_000;
|
||||
@@ -48,6 +49,7 @@ export type RepoInfo = {
|
||||
gated: false | "auto" | "manual";
|
||||
private: boolean;
|
||||
lastModified: string | null;
|
||||
metadata: RepoMetadata;
|
||||
};
|
||||
|
||||
function headers(): HeadersInit {
|
||||
@@ -138,13 +140,14 @@ export async function getRepoInfo(repoId: string, revision: string): Promise<Rep
|
||||
gated?: false | "auto" | "manual";
|
||||
private?: boolean;
|
||||
lastModified?: string;
|
||||
};
|
||||
} & Parameters<typeof parseRepoMetadata>[0];
|
||||
return {
|
||||
repoId: j.id ?? repoId,
|
||||
sha: j.sha,
|
||||
gated: j.gated ?? false,
|
||||
private: j.private ?? false,
|
||||
lastModified: j.lastModified ?? null,
|
||||
metadata: parseRepoMetadata(j),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user