Dataset Viewer issue

#1
by zinc75 - opened

The dataset viewer is not working.

I tried to add the features in the YAML header of README.md for the ASR_Laryngophone config, and not puting any features for ASR_Reference_microphone config.

The YAML header has been validated using https://huggingface.co/spaces/huggingface/datasets-tagging.

I would like the audio column to be automatically casted to "Audio" instead of "string" so that instead of just showing the relative path audio the audio file, an audio reader allows to listen to the audios in the dataset viewer.

For the ASR_Reference_microphone config, the dataset viewer shows a column "audio" casted as string, and for the ASR_Laryngophone config, the dataset viewer fails, with the following error : 'str' object has no attribute 'items' .

Could you give some pointers / help / guidance on how to fix my YAML header to obtain what I want (audio readers in the audio column).

Best regards,

cc @albertvillanova @lhoestq @severo @polinaeterna

Hi, @zinc75 .

Please note that we support only CSV or JSONL metadata files, and its name should be "metadata.csv" or "metadata.jsonl".

You can find more information in our docs: https://huggingface.co/docs/datasets/main/en/audio_dataset#audiofolder

@albertvillanova Great ! Thank you ! In the meantime, I managed to make it work using metadata.jsonl and the push_to_hub() method for each config and Audiofolder as explained in this Github PR by @polinaeterna .

Best regards !

zinc75 changed discussion status to closed

Sign up or log in to comment