Skip to content

Limit which tasks transformers has support for #591

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

Merged
merged 2 commits into from
Mar 29, 2024
Merged

Conversation

osanseviero
Copy link
Contributor

@osanseviero osanseviero commented Mar 29, 2024

Until now, the Hub assumes transformers has support for all tasks for which there's API, such as audio-to-audio (and there's no AudioToAudioPipeline in transformers). This list is derived from https://github.com/huggingface/api-inference/blob/main/shard/app/validation/__init__.py#L24

This will hide widgets/snippets for tasks not supported here

Copy link
Member

@julien-c julien-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool PR!

Agree with the intent, and agree with @SBrandeis' comments

@osanseviero
Copy link
Contributor Author

I opened https://github.com/huggingface/moon-landing/pull/9442 for moon-landing
For api-inference-community, given all recent changes and that we're not adding new tasks over there recently, I would just keep as-is for now.

@osanseviero osanseviero merged commit 32e3e48 into main Mar 29, 2024
@osanseviero osanseviero deleted the osanseviero-patch-2 branch March 29, 2024 14:00
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.

3 participants