Skip to content

Commit

Permalink
Update model_store.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kenstler authored Jun 15, 2018
1 parent 1636365 commit 6396657
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions encoding/models/model_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ def get_model_file(name, root=os.path.join('~', '.encoding', 'models')):
zf.extractall(root)
os.remove(zip_file_path)

if check_sha1(file_path, sha1_hash):
return file_path
else:
raise ValueError('Downloaded file has different hash. Please try again.')
# if check_sha1(file_path, sha1_hash):
return file_path
# else:
# raise ValueError('Downloaded file has different hash. Please try again.')

def purge(root=os.path.join('~', '.encoding', 'models')):
r"""Purge all pretrained model files in local file store.
Expand Down

0 comments on commit 6396657

Please sign in to comment.