Skip to content

Commit

Permalink
Fix file name creation for Windows (apache#11765)
Browse files Browse the repository at this point in the history
* Fix file name creation for Windows

* Forcing build

* Force build again
  • Loading branch information
Ishitori authored and indhub committed Jul 24, 2018
1 parent 8a54126 commit b4c5a0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tutorials/python/predict_image.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ from collections import namedtuple
Batch = namedtuple('Batch', ['data'])

def get_image(url, show=False):
# download and show the image
fname = mx.test_utils.download(url)
# download and show the image. Remove query string from the file name.
fname = mx.test_utils.download(url, fname=url.split('/')[-1].split('?')[0])
img = mx.image.imread(fname)
if img is None:
return None
Expand Down

0 comments on commit b4c5a0c

Please sign in to comment.