Skip to content
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

Add pxia #979

Merged
merged 3 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions packages/tasks/src/model-libraries-snippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,17 @@ export const nemo = (model: ModelData): string[] => {
return command ?? [`# tag did not correspond to a valid NeMo domain.`];
};

export const pxia = (model: ModelData): string[] => [
`# Installation

pip install pxia
`,
`# Load the model

from pxia import AutoModel
model = AutoModel.from_pretrained("${model.id}")`,
];

not-lain marked this conversation as resolved.
Show resolved Hide resolved
export const pythae = (model: ModelData): string[] => [
`from pythae.models import AutoModel

Expand Down
7 changes: 7 additions & 0 deletions packages/tasks/src/model-libraries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
filter: true,
countDownloads: `path:"adapter_config.json"`,
},
pxia: {
prettyLabel: "pxia",
repoName: "pxia",
repoUrl: "https://github.com/not-lain/pxia",
snippets: snippets.pxia,
filter: false,
},
"pyannote-audio": {
prettyLabel: "pyannote.audio",
repoName: "pyannote-audio",
Expand Down
Loading