Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def push_to_wiseModel(
|
|
72 |
repo_dir = f"./{cache_dir}/{repo_name}"
|
73 |
os.makedirs(repo_dir, exist_ok=True)
|
74 |
source_dir = f"./{cache_dir}/hf/{hf_repo_id}"
|
75 |
-
move_file(source_dir, repo_dir
|
76 |
gitCmd.add(repo_dir, all_files=True)
|
77 |
gitCmd.commit(repo_dir, message="commit from hf to wisemodel")
|
78 |
gitCmd.push(repo_dir, token, url, branch, branch)
|
|
|
72 |
repo_dir = f"./{cache_dir}/{repo_name}"
|
73 |
os.makedirs(repo_dir, exist_ok=True)
|
74 |
source_dir = f"./{cache_dir}/hf/{hf_repo_id}"
|
75 |
+
move_file(source_dir, repo_dir) #, excludes=[".git", ".gitattributes"])
|
76 |
gitCmd.add(repo_dir, all_files=True)
|
77 |
gitCmd.commit(repo_dir, message="commit from hf to wisemodel")
|
78 |
gitCmd.push(repo_dir, token, url, branch, branch)
|