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

Force modelcards to use utf-8 encoding #1102

Merged
merged 1 commit into from
Oct 10, 2022

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Oct 10, 2022

hfh v0.10.0 introduced modelcards that was previously hosted on a separate repo (https://github.com/nateraw/modelcards). When moving it into huggingface_hub, the use of utf-8 encoding by default has been lost which cause some issues for windows users as highlighted by @BenjaminBossan in skops-dev/skops#162 (comment).

This PR forces the use of utf-8 when loading/saving a repocard. Once that is merged, I will cherry-pick the commit in v0.10-release branch and bump the version to v0.10.1 so that this inconsistency stays as little as possible in the wild :)

@nateraw mind approving the PR ? 🙏

cc @adrinjalali

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Oct 10, 2022

The documentation is not available anymore as the PR was closed or merged.

Copy link
Contributor

@nateraw nateraw left a comment

Choose a reason for hiding this comment

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

LGTM

@Wauplin Wauplin merged commit 37bf479 into main Oct 10, 2022
@Wauplin Wauplin deleted the force-modelcards-encoding-to-utf-8 branch October 10, 2022 15:14
Wauplin added a commit that referenced this pull request Oct 11, 2022
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