Dataset Viewer issue: DatasetWithScriptNotSupportedError

#1
by yeshpanovrustem - opened

Hello,

I've noticed that the dataset viewer is currently not functioning as expected. Strangely, it was working flawlessly after I initially created the repository, but recently, I've encountered issues with it. Could you assist me in resolving this matter?

Thank you.

Error details:

Error code:   DatasetWithScriptNotSupportedError

cc @albertvillanova @lhoestq @severo .

Indeed, the dataset viewer does not support script-based datasets anymore, for security reasons (the mechanism was being abused). The best solution would be to use the datasets push_to_hub method, or wait for https://github.com/huggingface/datasets/pull/6795 to be ready, to convert your dataset to "data-only". Please tell us if you need more details or assistance.

Noted with thanks. To my shame, I am not, however, sure that I completely understand how to make my dataset get displayed then. Do you have a guide or a tutorial that can help me with this?

You can look at the code here: https://huggingface.co./datasets/jmhessel/newyorker_caption_contest/discussions/4, where I did the same thing for another dataset.

The new tool (https://github.com/huggingface/datasets/pull/6795) will do it automatically (cc @albertvillanova )

Thank you so much for helping me! Everything is working now!

yeshpanovrustem changed discussion status to closed

Sign up or log in to comment