From cf2124f537fe086f56971de9cf9d03119c41e861 Mon Sep 17 00:00:00 2001 From: Ethan Ng Date: Fri, 12 Dec 2025 14:24:35 -0800 Subject: [PATCH 1/2] Update model-libraries.ts for aviation-ner --- packages/tasks/src/model-libraries.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/tasks/src/model-libraries.ts b/packages/tasks/src/model-libraries.ts index 245190369a..3a4d1c4aae 100644 --- a/packages/tasks/src/model-libraries.ts +++ b/packages/tasks/src/model-libraries.ts @@ -11,15 +11,15 @@ export interface LibraryUiElement { * displayed in tags, and on the main * call-to-action button on the model page. */ - prettyLabel: string; + prettyLabel: "aviation-ner"; /** * Repo name of the library's (usually on GitHub) code repo */ - repoName: string; + repoName: "aviation-ner-sdr"; /** * URL to library's (usually on GitHub) code repo */ - repoUrl: string; + repoUrl: "https://github.com/Boeing/aviation_ner_sdr"; /** * URL to library's docs */ @@ -34,12 +34,12 @@ export interface LibraryUiElement { * By default, those files are counted: * "config.json", "config.yaml", "hyperparams.yaml", "params.json", "meta.yaml" */ - countDownloads?: ElasticSearchQuery; + countDownloads?: `path:"gliner_config.json"`; /** * should we display this library in hf.co/models filter * (only for popular libraries with > 100 models) */ - filter?: boolean; + filter?: false; } /** From 242ee6787c2855d9abd3bd88cb293ffbbad905ec Mon Sep 17 00:00:00 2001 From: Ethan Ng Date: Mon, 22 Dec 2025 08:38:22 -0800 Subject: [PATCH 2/2] Update model-libraries.ts --- packages/tasks/src/model-libraries.ts | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/packages/tasks/src/model-libraries.ts b/packages/tasks/src/model-libraries.ts index 3a4d1c4aae..e09da8a8b1 100644 --- a/packages/tasks/src/model-libraries.ts +++ b/packages/tasks/src/model-libraries.ts @@ -11,15 +11,15 @@ export interface LibraryUiElement { * displayed in tags, and on the main * call-to-action button on the model page. */ - prettyLabel: "aviation-ner"; + prettyLabel: string; /** * Repo name of the library's (usually on GitHub) code repo */ - repoName: "aviation-ner-sdr"; + repoName: string; /** * URL to library's (usually on GitHub) code repo */ - repoUrl: "https://github.com/Boeing/aviation_ner_sdr"; + repoUrl: string; /** * URL to library's docs */ @@ -34,12 +34,12 @@ export interface LibraryUiElement { * By default, those files are counted: * "config.json", "config.yaml", "hyperparams.yaml", "params.json", "meta.yaml" */ - countDownloads?: `path:"gliner_config.json"`; + countDownloads?: ElasticSearchQuery; /** * should we display this library in hf.co/models filter * (only for popular libraries with > 100 models) */ - filter?: false; + filter?: boolean; } /** @@ -1439,6 +1439,15 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = { countDownloads: `path:"model_vae_fp16.pt"`, snippets: snippets.threedtopia_xl, }, + "aviation-ner": { + prettyLabel: "aviation-ner", + repoName: "aviation-ner-sdr", + repoUrl: "https://github.com/Boeing/aviation_ner_sdr", + docsUrl: "https://github.com/Boeing/aviation_ner_sdr", + snippets: snippets.aviation-ner, + countDownloads: `path:"gliner_config.json"`, + filter: false, + }, } satisfies Record; export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;