We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent faba632 commit 0e145c5Copy full SHA for 0e145c5
1 file changed
scripts/download_model_binary.py
@@ -60,7 +60,7 @@ def valid_dirname(dirname):
60
61
# Closure-d function for checking SHA1.
62
def model_checks_out(filename=model_filename, sha1=frontmatter['sha1']):
63
- with open(filename, 'r') as f:
+ with open(filename, 'rb') as f:
64
return hashlib.sha1(f.read()).hexdigest() == sha1
65
66
# Check if model exists.
0 commit comments