Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from huggingface_hub import snapshot_download, upload_folder, login
|
2 |
+
|
3 |
+
|
4 |
+
|
5 |
+
source_dir = snapshot_download(
|
6 |
+
repo_id="locke12/HunyuanVideoLoras",
|
7 |
+
local_dir="./temp_hunyuan_loras",
|
8 |
+
local_dir_use_symlinks=False
|
9 |
+
)
|
10 |
+
|
11 |
+
upload_folder(
|
12 |
+
repo_id="rahul7star/hunyuan-lora",
|
13 |
+
folder_path="./temp_hunyuan_loras",
|
14 |
+
repo_type="model",
|
15 |
+
commit_message="Copied all files from locke12/HunyuanVideoLoras"
|
16 |
+
)
|