piiswrong commented on a change in pull request #9986: gluon language modeling dataset and text token reader URL: https://github.com/apache/incubator-mxnet/pull/9986#discussion_r172287751
########## File path: python/mxnet/gluon/utils.py ########## @@ -218,3 +220,25 @@ def download(url, path=None, overwrite=False, sha1_hash=None): 'the default repo.'.format(fname)) return fname + +def get_repo_url(): + """Return the base URL for Gluon dataset and model repository.""" + default_repo = 'https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/' + repo_url = os.environ.get('MXNET_GLUON_REPO', default_repo) + if repo_url[-1] != '/': + repo_url = repo_url+'/' + return repo_url + +def get_repo_file_url(namespace, filename): Review comment: hidden? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services