Dataset Viewer issue
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
The dataset is loaded, but audio doesn't work. May be that caused by the ogg
format of the audio files?
also reported here: https://huggingface.co/datasets/zeio/auto-pale/discussions/2#65436ce0765b0fe97d6bace4.
In https://huggingface.co/datasets/zeio/auto-pale/viewer/pulled, the audio files (like https://datasets-server.huggingface.co/cached-assets/zeio/auto-pale/--/15e35cd285dae08e7340ff2971ac3402eada46d8/--/pulled/train/0/sound/audio.wav) are empty indeed.
cc @lhoestq <- don't we currently support ogg?
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
https://github.com/huggingface/datasets-server/issues/2045 has been fixed and looks like it works now.
Try with https://datasets-server.huggingface.co/rows?dataset=zeio%2Fauto-pale&config=pulled&split=train&offset=0&length=100