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 8 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)

@mishig25
Copy link
Collaborator

mishig25 commented Nov 25, 2024

#1046 is merged. What does it mean for this PR?

@Wauplin
Copy link
Contributor Author

Wauplin commented Nov 25, 2024

@mishig25 I took care of merging + switching test to the "new" system + fixing a snippet template. Should be all good for review now :)

Note that I have added tests only for the Python snippets since I only touched these (JS/curl might be good but prefer to do them in a later PR if relevant)

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.

2 participants