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

Dataclasses for objects returned hf api #1993

Conversation

NouamaneELGueddarii
Copy link
Contributor

this a PR for switching the "TransformersInfo" class to dataclass

Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

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

Thanks @NouamaneELGueddarii! Left 2 small comments and we're good to merge :)

image
^ love it 🤗

src/huggingface_hub/hf_api.py Outdated Show resolved Hide resolved
src/huggingface_hub/hf_api.py Outdated Show resolved Hide resolved
Co-authored-by: Lucain <lucainp@gmail.com>
Co-authored-by: Lucain <lucainp@gmail.com>
@NouamaneELGueddarii
Copy link
Contributor Author

Thank you @Wauplin. I have commited the suggested changes, Thank you for your time. It was a pleasure :)

Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

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

I resolved a dict to due changes made on main while you where working on this one. Let's wait for the CI to be green and then we can merge it. I'm the only one that can merge so I'll let you know :)

@HuggingFaceDocBuilderDev

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.

@Wauplin
Copy link
Contributor

Wauplin commented Jan 19, 2024

All good! Let's merge this :)

@Wauplin Wauplin merged commit c528f78 into huggingface:main Jan 19, 2024
14 checks passed
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.

None yet

4 participants