Unverified Commit f7328de4 authored by Stas Bekman's avatar Stas Bekman Committed by GitHub
Browse files

HF emoji unicode doesn't work in console (#11081)

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
parent 6ab7d1a4
...@@ -23,7 +23,7 @@ def check_min_version(min_version): ...@@ -23,7 +23,7 @@ def check_min_version(min_version):
if version.parse(__version__) < version.parse(min_version): if version.parse(__version__) < version.parse(min_version):
if "dev" in min_version: if "dev" in min_version:
error_message = ( 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`)," "`https://huggingface.co/transformers/installation.html#installing-from-source`),"
) )
else: else:
...@@ -33,6 +33,6 @@ def check_min_version(min_version): ...@@ -33,6 +33,6 @@ def check_min_version(min_version):
error_message error_message
+ ( + (
"Check out https://huggingface.co/transformers/examples.html for the examples corresponding to other " "Check out https://huggingface.co/transformers/examples.html for the examples corresponding to other "
"versions of 🤗 Transformers." "versions of HuggingFace Transformers."
) )
) )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment