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

    • Start by creating a virtual environment on your machine. Run the following commands:

      On Windows

      python -m venv env
      ./env/Scripts/activate 
      

      On macOS/Linux

      source env/bin/activate  
      pip install -r requirements.txt
      
  • 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.
  • 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.

  • Modify main.py

    • In the main.py file, 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")
      

    This line specifies where your dataset will be pushed on Hugging Face.

  • 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.

Downloads last month
2
Edit dataset card