Toadoum commited on
Commit
dc655f2
·
verified ·
1 Parent(s): 3ce2ad0

Delete upload_to_hf.py

Browse files
Files changed (1) hide show
  1. upload_to_hf.py +0 -29
upload_to_hf.py DELETED
@@ -1,29 +0,0 @@
1
- """Push the sba-Fr dataset to the Hugging Face Hub.
2
-
3
- Usage:
4
- pip install -U huggingface_hub datasets
5
- huggingface-cli login # or: export HF_TOKEN=hf_...
6
- python upload_to_hf.py # run from this folder
7
-
8
- The repo is created PRIVATE. Flip it to public (or gated) on the Hub
9
- once you're happy with the card and the licensing terms.
10
- """
11
- from huggingface_hub import HfApi
12
-
13
- REPO_ID = "Toadoum/ngambay-french-sba-fr"
14
-
15
- api = HfApi()
16
- api.create_repo(REPO_ID, repo_type="dataset", private=True, exist_ok=True)
17
- api.upload_folder(
18
- folder_path=".",
19
- repo_id=REPO_ID,
20
- repo_type="dataset",
21
- allow_patterns=["README.md", "LICENSE", "data/**"],
22
- commit_message="Add sba-Fr Ngambay–French corpus (original + synthetic configs) with dataset card",
23
- )
24
- print(f"Done: https://huggingface.co/datasets/{REPO_ID}")
25
-
26
- # Sanity check (needs access to the private repo):
27
- from datasets import load_dataset
28
- for cfg in ["original", "original_plus_synthetic"]:
29
- print(cfg, load_dataset(REPO_ID, cfg))