anonajay's picture
Upload folder using huggingface_hub
3a2da6a verified
Raw History Blame Contribute Delete
309 Bytes
# BROKEN: The default list [] is created once at definition time.
def add_to_box(item, box=[]):
box.append(item)
return box
def clear_and_process(data):
# This should return a fresh list every time,
# but currently it accumulates data from previous calls.
return add_to_box(data)