-
Notifications
You must be signed in to change notification settings - Fork 402
✨ Better typing for LIBRARY_TASK_MAPPING_EXCLUDING_TRANSFORMERS #552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
02adbd8
d156f2d
7548bbc
64e8088
df779f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| import type { ModelLibraryKey } from "./Libraries"; | ||
|
|
||
| // Warning: order of modalities here determine how they are listed on the /tasks page | ||
| export const MODALITIES = [ | ||
| "cv", | ||
|
|
@@ -758,88 +760,88 @@ export interface TransformersInfo { | |
| * This mapping is generated automatically by "python-api-export-tasks" action in huggingface/api-inference-community repo upon merge. | ||
| * Ref: https://github.com/huggingface/api-inference-community/pull/158 | ||
| */ | ||
| export const LIBRARY_TASK_MAPPING_EXCLUDING_TRANSFORMERS: Record<string, Array<string>> = { | ||
| "adapter_transformers": [ | ||
| export const LIBRARY_TASK_MAPPING_EXCLUDING_TRANSFORMERS: Partial<Record<ModelLibraryKey, PipelineType[]>> = { | ||
| "adapter-transformers": [ | ||
| "question-answering", | ||
| "text-classification", | ||
| "token-classification" | ||
| "token-classification", | ||
| ], | ||
| "allennlp": [ | ||
| "question-answering" | ||
| "question-answering", | ||
| ], | ||
| "asteroid": [ | ||
| "audio-source-separation", | ||
| "audio-to-audio" | ||
| // "audio-source-separation", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (not a valid pipeline tag) |
||
| "audio-to-audio", | ||
| ], | ||
| "diffusers": [ | ||
| "text-to-image" | ||
| ], | ||
| "doctr": [ | ||
| "object-detection" | ||
| "text-to-image", | ||
| ], | ||
| // "doctr": [ | ||
| // "object-detection", | ||
| // ], | ||
|
||
| "espnet": [ | ||
| "text-to-speech", | ||
| "automatic-speech-recognition" | ||
| "automatic-speech-recognition", | ||
| ], | ||
| "fairseq": [ | ||
| "text-to-speech", | ||
| "audio-to-audio" | ||
| "audio-to-audio", | ||
| ], | ||
| "fastai": [ | ||
| "image-classification" | ||
| "image-classification", | ||
| ], | ||
| "fasttext": [ | ||
| "feature-extraction", | ||
| "text-classification" | ||
| "text-classification", | ||
| ], | ||
| "flair": [ | ||
| "token-classification" | ||
| ], | ||
| "k2_sherpa": [ | ||
| "automatic-speech-recognition" | ||
| "token-classification", | ||
| ], | ||
| // "k2_sherpa": [ | ||
| // "automatic-speech-recognition", | ||
| // ], | ||
| "keras": [ | ||
| "image-classification" | ||
| "image-classification", | ||
| ], | ||
| "nemo": [ | ||
| "automatic-speech-recognition" | ||
| "automatic-speech-recognition", | ||
| ], | ||
| "paddlenlp": [ | ||
| "conversational", | ||
| "fill-mask" | ||
| "fill-mask", | ||
| ], | ||
| "pyannote_audio": [ | ||
| "automatic-speech-recognition" | ||
| "pyannote-audio": [ | ||
| "automatic-speech-recognition", | ||
| ], | ||
| "sentence_transformers": [ | ||
| "sentence-transformers": [ | ||
| "feature-extraction", | ||
| "sentence-similarity" | ||
| "sentence-similarity", | ||
| ], | ||
| "sklearn": [ | ||
| "tabular-classification", | ||
| "tabular-regression", | ||
| "text-classification" | ||
| "text-classification", | ||
| ], | ||
| "spacy": [ | ||
| "token-classification", | ||
| "text-classification", | ||
| "sentence-similarity" | ||
| "sentence-similarity", | ||
| ], | ||
| "speechbrain": [ | ||
| "audio-classification", | ||
| "audio-to-audio", | ||
| "automatic-speech-recognition", | ||
| "text-to-speech", | ||
| "text2text-generation" | ||
| "text2text-generation", | ||
| ], | ||
| "stanza": [ | ||
| "token-classification" | ||
| ], | ||
| "superb": [ | ||
| "automatic-speech-recognition", | ||
| "speech-segmentation" | ||
| "token-classification", | ||
| ], | ||
| // "superb": [ | ||
| // "automatic-speech-recognition", | ||
| // "speech-segmentation", | ||
| // ], | ||
| "timm": [ | ||
| "image-classification" | ||
| ] | ||
| } | ||
| "image-classification", | ||
| ], | ||
| }; | ||
Uh oh!
There was an error while loading. Please reload this page.