-
Notifications
You must be signed in to change notification settings - Fork 899
Initial import #1
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
julien-c
pushed a commit
that referenced
this pull request
May 21, 2021
- Correct Spanish translation of default examples commit imported from https://github.com/huggingface/widgets/commit/124bd3fd84f21976bdc088d25714ef5e09a5906f - Correct Spanish translation of default examples
julien-c
pushed a commit
that referenced
this pull request
May 21, 2021
- Correct Spanish translation of default examples commit imported from https://github.com/huggingface/widgets/commit/124bd3fd84f21976bdc088d25714ef5e09a5906f - Correct Spanish translation of default examples
LysandreJik
added a commit
that referenced
this pull request
May 18, 2022
* ENH lazy load modules in the root __init__ * add link to the original repo of the vendored file * move function to __init__ * Add warning when module/attr have same name (#1) * rename snapshot_download.py -> _snapshot_download.py * update docs Co-authored-by: Lysandre Debut <[email protected]> * update docs Co-authored-by: Lysandre Debut <[email protected]> * update docs Co-authored-by: Lysandre Debut <[email protected]> Co-authored-by: Stefan van der Walt <[email protected]> Co-authored-by: Lysandre Debut <[email protected]>
WilliamRabuel
added a commit
to WilliamRabuel/huggingface_hub
that referenced
this pull request
Jul 19, 2025
I discover a problem (even lots of problems...) when I wanted to use push_to_hub on an agent of smolagents, and the problem is due to huggingface_hub, in the file : Bug huggingface#1: UnicodeEncodeError when creating README.md Error: UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f440' (for exemple) in position 32: character maps to <undefined> Root cause: Location: Path.write_text() in huggingface_hub/repocard.py:279 Problem: Windows uses CP1252 encoding by default instead of UTF-8 Trigger: A Unicode emoji (\U0001f440 = 👀 for exemple) in the README.md metadata Context: smolagents automatically generates a README.md with emojis, but Windows cannot encode them using CP1252 Bug mechanism: agent.push_to_hub() calls metadata_update() metadata_update() creates a RepoCard with an emoji RepoCard.push_to_hub() uses Path.write_text() without specifying UTF-8 Windows defaults to CP1252 → crash on emoji Solution: So I juste use encoding="utf-8" in write_text()
WilliamRabuel
added a commit
to WilliamRabuel/huggingface_hub
that referenced
this pull request
Jul 20, 2025
I discover a problem (even lots of problems...) when I wanted to use push_to_hub on an agent of smolagents, and the problem is due to huggingface_hub, in the file : Bug huggingface#1: UnicodeEncodeError when creating README.md Error: UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f440' (for exemple) in position 32: character maps to <undefined> Root cause: Location: Path.write_text() in huggingface_hub/repocard.py:279 Problem: Windows uses CP1252 encoding by default instead of UTF-8 Trigger: A Unicode emoji (\U0001f440 = 👀 for exemple) in the README.md metadata Context: smolagents automatically generates a README.md with emojis, but Windows cannot encode them using CP1252 Bug mechanism: agent.push_to_hub() calls metadata_update() metadata_update() creates a RepoCard with an emoji RepoCard.push_to_hub() uses Path.write_text() without specifying UTF-8 Windows defaults to CP1252 → crash on emoji Solution: So I juste use encoding="utf-8" in write_text()
Wauplin
pushed a commit
that referenced
this pull request
Jul 21, 2025
I discover a problem (even lots of problems...) when I wanted to use push_to_hub on an agent of smolagents, and the problem is due to huggingface_hub, in the file : Bug #1: UnicodeEncodeError when creating README.md Error: UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f440' (for exemple) in position 32: character maps to <undefined> Root cause: Location: Path.write_text() in huggingface_hub/repocard.py:279 Problem: Windows uses CP1252 encoding by default instead of UTF-8 Trigger: A Unicode emoji (\U0001f440 = 👀 for exemple) in the README.md metadata Context: smolagents automatically generates a README.md with emojis, but Windows cannot encode them using CP1252 Bug mechanism: agent.push_to_hub() calls metadata_update() metadata_update() creates a RepoCard with an emoji RepoCard.push_to_hub() uses Path.write_text() without specifying UTF-8 Windows defaults to CP1252 → crash on emoji Solution: So I juste use encoding="utf-8" in write_text()
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.