mirror of
https://git.adityakumar.xyz/llama.cpp.git
synced 2024-11-09 15:29:43 +00:00
minor : fix trailing whitespaces
This commit is contained in:
parent
b0c71c7b6d
commit
e2a937ca6a
1 changed files with 2 additions and 2 deletions
|
@ -6,13 +6,13 @@ def sha256sum(file):
|
|||
b = bytearray(block_size)
|
||||
file_hash = hashlib.sha256()
|
||||
mv = memoryview(b)
|
||||
with open(file, 'rb', buffering=0) as f:
|
||||
with open(file, 'rb', buffering=0) as f:
|
||||
while True:
|
||||
n = f.readinto(mv)
|
||||
if not n:
|
||||
break
|
||||
file_hash.update(mv[:n])
|
||||
|
||||
|
||||
return file_hash.hexdigest()
|
||||
|
||||
# Define the path to the llama directory (parent folder of script directory)
|
||||
|
|
Loading…
Reference in a new issue