Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,56 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: cc0-1.0
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc0-1.0
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
## Uploading
|
| 7 |
+
|
| 8 |
+
CLI:
|
| 9 |
+
|
| 10 |
+
```
|
| 11 |
+
# Install the Hugging Face CLI
|
| 12 |
+
brew install huggingface-cli
|
| 13 |
+
|
| 14 |
+
# Login with your Hugging Face credentials
|
| 15 |
+
hf auth login
|
| 16 |
+
|
| 17 |
+
# Push your dataset files
|
| 18 |
+
hf upload RGES-PIT/Experienced . --repo-type=dataset
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
Python:
|
| 22 |
+
|
| 23 |
+
```
|
| 24 |
+
from huggingface_hub import HfApi
|
| 25 |
+
|
| 26 |
+
api = HfApi(token=os.getenv("HF_TOKEN"))
|
| 27 |
+
api.upload_folder(
|
| 28 |
+
folder_path="/path/to/local/dataset",
|
| 29 |
+
repo_id="RGES-PIT/Experienced",
|
| 30 |
+
repo_type="dataset",
|
| 31 |
+
)
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
HTTPS:
|
| 35 |
+
|
| 36 |
+
```
|
| 37 |
+
# Make sure git-lfs is installed (https://git-lfs.com)
|
| 38 |
+
git lfs install
|
| 39 |
+
|
| 40 |
+
git remote add origin https://huggingface.co/datasets/RGES-PIT/Experienced
|
| 41 |
+
|
| 42 |
+
# You'll be prompted for your HF credentials
|
| 43 |
+
git push -u origin main
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
SSH:
|
| 47 |
+
|
| 48 |
+
```
|
| 49 |
+
# Make sure git-lfs is installed (https://git-lfs.com)
|
| 50 |
+
git lfs install
|
| 51 |
+
|
| 52 |
+
git remote add origin git@hf.co:datasets/RGES-PIT/Experienced
|
| 53 |
+
|
| 54 |
+
# Make sure SSH key is set in your user settings (https://huggingface.co/settings/keys)
|
| 55 |
+
git push -u origin main
|
| 56 |
+
```
|