Dataset Viewer issue

#1
by zeio - opened

Hi, the dataset viewer is not working for some reason (config pulled, subset train). The dataset is uploaded using push_to_hub api. Can you please check what's the problem?

Error details:

Error code:   TransformRowsProcessingError

cc @albertvillanova @lhoestq @severo .

The dataset is loaded, but audio doesn't work. May be that caused by the ogg format of the audio files?

I think it's been fixed at https://github.com/huggingface/datasets-server/issues/1912

I force refreshed the Dataset Viewer to fix it, it will be available soon :)

The error appears to still be here. Here is the internal error:

File \"/src/libs/libcommon/src/libcommon/viewer_utils/asset.py\", line 111, in create_audio_file
   segment.export(f, format=suffix[1:])
File \"/src/services/worker/.venv/lib/python3.9/site-packages/pydub/audio_segment.py\", line 868, in export
   out_f.seek(0)
File \"/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/spec.py\", line 1737, in seek
   aise OSError(ESPIPE, \"Seek only available in read mode\")
OSError: [Errno 29] Seek only available in read mode

we might have to write to a BytesIO buffer before writing the audio actual audio asset file, since fsspec doesn't allow seek for wb files somehow.

cc @asoria

I opened https://github.com/huggingface/datasets-server/issues/2045

Perfect! Thanks @asoria for the fix.

albertvillanova changed discussion status to closed

Sign up or log in to comment