Dataset Viewer issue: RowsPostProcessingError

#2
by carlosdanielhernandezmena - opened

The dataset viewer is not working.

Error details:

I did nothing and today I discovered that the viewer doesn't work. Please help me

Error code:   RowsPostProcessingError

cc @albertvillanova @lhoestq @severo .

The underlying error is:

Could not find codec parameters for stream 0 (Audio: flac, 0 channels): unspecified sample format\nConsider increasing the value for the 'analyzeduration' and 'probesize' options\nInput #0, flac, from '/tmp/tmpo3stp3jk.flac':\n Duration: N/A, bitrate: N/A\n Stream #0:0: Audio: flac, 0 channels\nOutput #0, wav, to 'pipe:':\nOutput file #0 does not contain any stream\n\n

Maybe @albertvillanova @lhoestq or @sanchit-gandhi could help?

anyway, as the dataset relies on a dataset script, if we recompute it, it will now fail, because the dataset viewer does not support script-based datasets anymore...

Indeed - what you can do @carlosdanielhernandezmena to preserve the dataset viewer is first download the dataset locally using your dataset script:

from datasets import load_dataset

dataset = load_dataset("carlosdanielhernandezmena/ravnursson_asr")

And then push it to the Hub, either under the same namespace, or a different one:

dataset.push_to_hub("carlosdanielhernandezmena/ravnursson_asr")

=> this should then re-enable the dataset viewer since your pushed dataset will be in parquet format with no arbitrary loading script

Sign up or log in to comment