Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
chenzihong
/
GraphGen
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
acd7cf4
GraphGen
/
graphgen
/
utils
/
hash.py
chenzihong-gavin
init
acd7cf4
3 months ago
raw
Copy download link
history
blame
Safe
210 Bytes
from
hashlib
import
md5
def
compute_args_hash
(
*args
):
return
md5(
str
(args).encode()).hexdigest()
def
compute_content_hash
(
content, prefix:
str
=
""
):
return
prefix + md5(content.encode()).hexdigest()