Skip to content

Commit

Permalink
HF emoji unicode doesn't work in console (#11081)
Browse files Browse the repository at this point in the history
It doesn't look like using 馃 is a great idea for printing to console. See attachment.

This PR proposes to replace 馃 with "HuggingFace" for an exception message.

@LysandreJik
  • Loading branch information
stas00 committed Apr 6, 2021
1 parent 6ab7d1a commit f7328de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transformers/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def check_min_version(min_version):
if version.parse(__version__) < version.parse(min_version):
if "dev" in min_version:
error_message = (
"This example requires a source install from 馃 Transformers (see "
"This example requires a source install from HuggingFace Transformers (see "
"`https://huggingface.co/transformers/installation.html#installing-from-source`),"
)
else:
Expand All @@ -33,6 +33,6 @@ def check_min_version(min_version):
error_message
+ (
"Check out https://huggingface.co/transformers/examples.html for the examples corresponding to other "
"versions of 馃 Transformers."
"versions of HuggingFace Transformers."
)
)

0 comments on commit f7328de

Please sign in to comment.