Unverified Commit 4ad2f68e authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Fix template init (#17163)

parent e99f0efe
......@@ -169,7 +169,7 @@ if TYPE_CHECKING:
from .tokenization_{{cookiecutter.lowercase_modelname}} import {{cookiecutter.camelcase_modelname}}Tokenizer
try:
if not is_torch_available():
if not is_tokenizers_available():
raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
pass
......
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