Upload date-data.py with huggingface_hub
#3
by
nguyenminh4099
- opened
- date-data.py +1 -6
date-data.py
CHANGED
|
@@ -22,7 +22,7 @@ _REPO = "datasets/nguyenminh4099/date-data"
|
|
| 22 |
_BRANCH = "main"
|
| 23 |
_REPO_BRANCH = f"{_REPO}@{_BRANCH}"
|
| 24 |
|
| 25 |
-
_REPO_URL = f"https://huggingface.co/{
|
| 26 |
_URL = os.path.join(_REPO_URL, "data", "{filename}.zip")
|
| 27 |
|
| 28 |
_CONFIGS = ['all']
|
|
@@ -121,8 +121,3 @@ class DateDate(datasets.GeneratorBasedBuilder):
|
|
| 121 |
"timezone": components[6],
|
| 122 |
"year": components[7],
|
| 123 |
}
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
|
|
|
| 22 |
_BRANCH = "main"
|
| 23 |
_REPO_BRANCH = f"{_REPO}@{_BRANCH}"
|
| 24 |
|
| 25 |
+
_REPO_URL = f"https://huggingface.co/{_REPO}/resolve/{_BRANCH}"
|
| 26 |
_URL = os.path.join(_REPO_URL, "data", "{filename}.zip")
|
| 27 |
|
| 28 |
_CONFIGS = ['all']
|
|
|
|
| 121 |
"timezone": components[6],
|
| 122 |
"year": components[7],
|
| 123 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|