tailot's picture
Upload folder using huggingface_hub
1600cd6 verified
Raw History Blame Contribute Delete
389 Bytes
"""Building slugs from a list of segments.
One function here carries a list as a default argument, which is the shape the mutable
default pattern refuses to leave in place. The other carries a tuple, which is a
default the pattern leaves alone.
"""
def add_tag(name, tags=[]):
tags.append(name)
return tags
def join_parts(parts=("root",), sep="-"):
return sep.join(parts)