Skip to content

Lazy load list of translation models #896

@davidmezzetti

Description

@davidmezzetti

Currently, the Translation pipeline loads a list of supported translation models in the __init__ method. This is causing HTTP 429 errors from the Hugging Face Hub with the build script.

The pipeline should load the list of supported models once on demand.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions