Skip to content

[pipeline] fix unwanted import failure#42598

Open
eustlb wants to merge 2 commits intohuggingface:mainfrom
eustlb:avoid-uncessary-import-failures
Open

[pipeline] fix unwanted import failure#42598
eustlb wants to merge 2 commits intohuggingface:mainfrom
eustlb:avoid-uncessary-import-failures

Conversation

@eustlb
Copy link
Copy Markdown
Contributor

@eustlb eustlb commented Dec 3, 2025

What does this PR do?

FIxes #42499

torchcodec installation can be tricky and right now pipeline can fail (if torchcodec is installed) even if torchcodec is actually not required. The lazy import can be even laziest :)

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatic Speech Recognition pipline raises error when torchcodec is installed but not valid

2 participants