audio audioduration (s) 17.9 29.8 | audio_names stringclasses 6
values | class_label class label 4
classes |
|---|---|---|
ai_other_artists_song_1.wav | 2good | |
ai_other_artists_song_10.wav | 1okay | |
ai_other_artists_song_11.wav | 0bad | |
ai_other_artists_song_12.wav | 3great | |
ai_other_artists_song_13.wav | 2good | |
ai_other_artists_song_14.wav | 1okay |
Follow these steps to set up and upload your audio dataset to Hugging Face:
Create a Virtual Environment
Generate a Hugging Face Token
- To interact with Hugging Face and push datasets, you'll need a Hugging Face access token. Follow these steps to generate one:
- Go to Hugging Face Settings.
- Click on "New Token."
- Give the token a name and select the Role as "Write."
- Copy the generated token.
- To interact with Hugging Face and push datasets, you'll need a Hugging Face access token. Follow these steps to generate one:
Configure Your Token
- Run the following command, replacing
'YOUR_TOKEN_HERE'with the token you obtained from Hugging Face:python -c "from huggingface_hub.hf_api import HfFolder; HfFolder.save_token('YOUR_TOKEN_HERE')"
This command will configure your environment with your Hugging Face token.
- Run the following command, replacing
Modify
main.py- In the
main.pyfile, make the following changes:- Replace
'Enter-Your-hub-name'with the name of your dataset. For example, use'AneeqMalik/test_audio_clips'.
audio_dataset.push_to_hub("Enter-Your-hub-name") - Replace
This line specifies where your dataset will be pushed on Hugging Face.
- In the
Run the Code
- To push your audio dataset to Hugging Face, execute the following command:
python main.py
Your audio dataset will be uploaded to Hugging Face under the specified name.
- To push your audio dataset to Hugging Face, execute the following command:
- Downloads last month
- 3