Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
e6786d3
1
Parent(s):
59e33b2
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def duplicate(source_repo, dst_repo, token, repo_type):
|
|
41 |
if ".git" not in root:
|
42 |
directories_list = root.split("/")
|
43 |
path_in_repo = "/".join(directories_list[3:]) # remove hub/namespace/reponame
|
44 |
-
print(local_dir, path_in_repo, f)
|
45 |
if path_in_repo:
|
46 |
print("Download with path", path_in_repo)
|
47 |
upload_file(path_or_fileobj=os.path.join(local_dir, path_in_repo, f),repo_id=dst_repo, token=token, repo_type=repo_type, path_in_repo=path_in_repo)
|
|
|
41 |
if ".git" not in root:
|
42 |
directories_list = root.split("/")
|
43 |
path_in_repo = "/".join(directories_list[3:]) # remove hub/namespace/reponame
|
44 |
+
print(directories_list, local_dir, path_in_repo, f)
|
45 |
if path_in_repo:
|
46 |
print("Download with path", path_in_repo)
|
47 |
upload_file(path_or_fileobj=os.path.join(local_dir, path_in_repo, f),repo_id=dst_repo, token=token, repo_type=repo_type, path_in_repo=path_in_repo)
|