Skip to content

Commit

Permalink
fix for windows (thanks to chrothenbach)
Browse files Browse the repository at this point in the history
  • Loading branch information
WuTheFWasThat committed Mar 7, 2019
1 parent 79a246a commit 8637828
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions download_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
subdir = os.path.join('models', model)
if not os.path.exists(subdir):
os.makedirs(subdir)
subdir = subdir.replace('\\','/') # needed for Windows

for filename in ['checkpoint','encoder.json','hparams.json','model.ckpt.data-00000-of-00001', 'model.ckpt.index', 'model.ckpt.meta', 'vocab.bpe']:

Expand Down

0 comments on commit 8637828

Please sign in to comment.