Datasets:

ArXiv:
License:

Fix memory issue

#1
by lhoestq HF staff - opened

The metadata dict was continuously getting filled with bytes from f.read() because of this code:

result = metadata[path]
result["audio"] = {"path": path, "bytes": f.read()}

copying the result with result = dict(metadata[path]) fixes it: the bytes are no longer added to metadata

anton-l changed pull request status to closed

Sign up or log in to comment