Pass a list instead of an iterator

#1
by lhoestq HF staff - opened

This should fix the dataset viewer.

Iterators are stateful, so if you use the dataset several times or load it in streaming you can end up with an empty iterator in files

Cool! thanks @lhoestq for the explanation, the code review, and pull request!

alkzar90 changed pull request status to merged

@lhoestq , the train dataset viewer is still failing. Is there any other bug possibility?

Sign up or log in to comment