Upload huggingface.py with huggingface_hub
Browse files- huggingface.py +9 -0
huggingface.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from huggingface_hub import upload_folder
|
| 2 |
+
|
| 3 |
+
upload_folder(
|
| 4 |
+
folder_path="/root/autodl-tmp/RVTCLR",
|
| 5 |
+
repo_id="qiushuocheng/workshop-clean",
|
| 6 |
+
repo_type="model", # or "dataset", "space"
|
| 7 |
+
path_in_repo="RVTCLR", # optional subdirectory in repo
|
| 8 |
+
commit_message="Initial upload"
|
| 9 |
+
)
|