AneeqMalik commited on
Commit
f6ead32
·
1 Parent(s): 98d2951

ReadMe changed

Browse files
Files changed (1) hide show
  1. README.md +40 -1
README.md CHANGED
@@ -21,4 +21,43 @@ configs:
21
  ---
22
  # Dataset Card for "test_audio_clips"
23
 
24
- [More Information needed](https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  ---
22
  # Dataset Card for "test_audio_clips"
23
 
24
+ Follow these steps to set up and upload your audio dataset to Hugging Face:
25
+
26
+ * **Create a Virtual Environment**
27
+ - Start by creating a virtual environment on your machine. Run the following commands:
28
+ ```bash
29
+ python -m venv env
30
+ ./env/Scripts/activate # On Windows
31
+ # OR
32
+ source env/bin/activate # On macOS/Linux
33
+ pip install -r requirements.txt
34
+ ```
35
+
36
+ * **Generate a Hugging Face Token**
37
+ - To interact with Hugging Face and push datasets, you'll need a Hugging Face access token. Follow these steps to generate one:
38
+ - Go to [Hugging Face Settings](https://huggingface.co/settings/tokens).
39
+ - Click on "New Token."
40
+ - Give the token a name and select the Role as "Write."
41
+ - Copy the generated token.
42
+
43
+ * **Configure Your Token**
44
+ - Run the following command, replacing `'YOUR_TOKEN_HERE'` with the token you obtained from Hugging Face:
45
+ ```bash
46
+ python -c "from huggingface_hub.hf_api import HfFolder; HfFolder.save_token('YOUR_TOKEN_HERE')"
47
+ ```
48
+ This command will configure your environment with your Hugging Face token.
49
+
50
+ * **Modify `main.py`**
51
+ - In the `main.py` file, make the following changes:
52
+ - Replace `'Enter-Your-hub-name'` with the name of your dataset. For example, use `'AneeqMalik/test_audio_clips'`.
53
+ ```python
54
+ audio_dataset.push_to_hub("Enter-Your-hub-name")
55
+ ```
56
+ This line specifies where your dataset will be pushed on Hugging Face.
57
+
58
+ * **Run the Code**
59
+ - To push your audio dataset to Hugging Face, execute the following command:
60
+ ```bash
61
+ python main.py
62
+ ```
63
+ Your audio dataset will be uploaded to Hugging Face under the specified name.