Skip to content

Commit 85dd5c2

Browse files
authored
Add missing import for text-ranking in TASKS_DATA (#1298)
Hello! ## Pull Request overview * Add missing import for text-ranking in TASKS_DATA ## Details I was missing an import to connect the `text-ranking` task to the `data.ts` that I prepared. This meant that the task in hf.co/tasks was considered a placeholder in huggingface-internal/moon-landing#12877 instead: ![image](https://github.com/user-attachments/assets/82cca1fa-c82d-48dd-b22b-b12f74831ffe) ![image](https://github.com/user-attachments/assets/b726c376-3bb5-4e65-95bb-41097abb4713) - Tom Aarsen
1 parent 4738190 commit 85dd5c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/tasks/src/tasks/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import tokenClassification from "./token-classification/data.js";
3030
import translation from "./translation/data.js";
3131
import textClassification from "./text-classification/data.js";
3232
import textGeneration from "./text-generation/data.js";
33+
import textRanking from "./text-ranking/data.js";
3334
import textToVideo from "./text-to-video/data.js";
3435
import unconditionalImageGeneration from "./unconditional-image-generation/data.js";
3536
import videoClassification from "./video-classification/data.js";
@@ -233,7 +234,7 @@ export const TASKS_DATA: Record<PipelineType, TaskData | undefined> = {
233234
"tabular-to-text": undefined,
234235
"text-classification": getData("text-classification", textClassification),
235236
"text-generation": getData("text-generation", textGeneration),
236-
"text-ranking": getData("text-ranking", placeholder),
237+
"text-ranking": getData("text-ranking", textRanking),
237238
"text-retrieval": undefined,
238239
"text-to-image": getData("text-to-image", textToImage),
239240
"text-to-speech": getData("text-to-speech", textToSpeech),

0 commit comments

Comments
 (0)