towhee.models.utils.download.checksum

towhee.models.utils.download.checksum(filepath, hash_prefix)[source]

Check hash value of a file.

Parameters:
  • filepath (str) – path of local file

  • hash_prefix (str) – prefix of hash value to compare with