Upload upl.py with huggingface_hub
Browse files
upl.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from huggingface_hub import HfApi
|
2 |
+
from huggingface_hub.utils import enable_progress_bars
|
3 |
+
enable_progress_bars()
|
4 |
+
api = HfApi()
|
5 |
+
|
6 |
+
api.upload_file(
|
7 |
+
|
8 |
+
path_or_fileobj="./dataset.json",
|
9 |
+
|
10 |
+
path_in_repo="dataset.json",
|
11 |
+
|
12 |
+
repo_id="OzoneAsai/ah",)
|