"...text-generation-inference.git" did not exist on "53aec27328934c0e23324bbb868dc99766e5be0c"
Commit bc659f86 authored by hzhwcmhf's avatar hzhwcmhf
Browse files

fix compatibility with python 3.5.2; convert path to str

parent a3a3180c
...@@ -23,8 +23,8 @@ import requests ...@@ -23,8 +23,8 @@ import requests
logger = logging.getLogger(__name__) # pylint: disable=invalid-name logger = logging.getLogger(__name__) # pylint: disable=invalid-name
PYTORCH_PRETRAINED_BERT_CACHE = Path(os.getenv('PYTORCH_PRETRAINED_BERT_CACHE', PYTORCH_PRETRAINED_BERT_CACHE = str(Path(os.getenv('PYTORCH_PRETRAINED_BERT_CACHE',
Path.home() / '.pytorch_pretrained_bert')) Path.home() / '.pytorch_pretrained_bert')))
def url_to_filename(url: str, etag: str = None) -> str: def url_to_filename(url: str, etag: str = None) -> str:
......
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