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

More python inference snippets #1028

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Nov 14, 2024

Given the size of the PR and the internal changes, I think it's best to review the changes commit per commit.

This PR:

  • improves snippets for document-question-answering (0288149)
  • improves snippets for automated-speech-recognition (060cd21)
  • adds snippets for image-to-image (6234469)
  • fixes some base64 imports (0907d8f)

I added tests for all the above.
I did not add InferenceClient snippets for all tasks as it's time-consuming. I only added tasks based on the trending models listed on huggingface.co/models. We might add more tasks in the future but that's less a priority.

Also includes some cleaning:

  • remove useless "export ..." from python snippets module (6d29991)
  • order snippet definitions alphabetically for easier retrieval (0900c99)

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.

1 participant