Upload ./upload.py with huggingface_hub
Browse files
upload.py
CHANGED
|
@@ -9,6 +9,7 @@ from huggingface_hub import HfApi
|
|
| 9 |
api = HfApi()
|
| 10 |
for r, ds, fs in os.walk("./"):
|
| 11 |
for f in fs:
|
|
|
|
| 12 |
fname = os.path.join(r,f)
|
| 13 |
api.upload_file(
|
| 14 |
path_or_fileobj=fname,
|
|
@@ -16,3 +17,4 @@ for r, ds, fs in os.walk("./"):
|
|
| 16 |
repo_id="Splend1dchan/Reddit_showerthought",
|
| 17 |
repo_type="dataset",
|
| 18 |
)
|
|
|
|
|
|
| 9 |
api = HfApi()
|
| 10 |
for r, ds, fs in os.walk("./"):
|
| 11 |
for f in fs:
|
| 12 |
+
print("doing", f)
|
| 13 |
fname = os.path.join(r,f)
|
| 14 |
api.upload_file(
|
| 15 |
path_or_fileobj=fname,
|
|
|
|
| 17 |
repo_id="Splend1dchan/Reddit_showerthought",
|
| 18 |
repo_type="dataset",
|
| 19 |
)
|
| 20 |
+
print("done", f)
|