"docs/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "c4cee3454f71dbbc9f7a0ed160ac8d484c3021f6"
Commit 80073936 authored by patil-suraj's avatar patil-suraj
Browse files

wrap transformers import with try/catch

parent cdf26c55
...@@ -5,7 +5,11 @@ import os ...@@ -5,7 +5,11 @@ import os
from shutil import copyfile from shutil import copyfile
import torch import torch
from transformers import PreTrainedTokenizer
try:
from transformers import PreTrainedTokenizer
except:
print("transformers is not installed")
try: try:
from unidecode import unidecode from unidecode import unidecode
......
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