mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-23 22:38:58 +06:00
fix compatibility with python 3.5.2; convert path to str
This commit is contained in:
parent
a3a3180c86
commit
bc659f86ad
@ -23,8 +23,8 @@ import requests
|
||||
|
||||
logger = logging.getLogger(__name__) # pylint: disable=invalid-name
|
||||
|
||||
PYTORCH_PRETRAINED_BERT_CACHE = Path(os.getenv('PYTORCH_PRETRAINED_BERT_CACHE',
|
||||
Path.home() / '.pytorch_pretrained_bert'))
|
||||
PYTORCH_PRETRAINED_BERT_CACHE = str(Path(os.getenv('PYTORCH_PRETRAINED_BERT_CACHE',
|
||||
Path.home() / '.pytorch_pretrained_bert')))
|
||||
|
||||
|
||||
def url_to_filename(url: str, etag: str = None) -> str:
|
||||
|
Loading…
Reference in New Issue
Block a user