osanseviero commited on
Commit
c60cd64
·
1 Parent(s): 9c92c74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -40,11 +40,11 @@ def duplicate(source_repo, dst_repo, token, repo_type):
40
  if not f.startswith("."):
41
  if ".git" not in root:
42
  # remove hub/namespace/reponame
43
- local_file_path = os.path.join(local_dir, path_in_repo, f)
44
  directory_path_in_repo = "/".join(root.split("/")[3:])
45
  path_in_repo = os.join(directory_path_in_repo, f)
46
- print("Download with path", path_in_repo)
47
- upload_file(path_or_fileobj=local_file_path,repo_id=dst_repo, token=token, repo_type=repo_type, path_in_repo=path_in_repo)
 
48
 
49
 
50
  # Clean up to be nice with the environment
 
40
  if not f.startswith("."):
41
  if ".git" not in root:
42
  # remove hub/namespace/reponame
 
43
  directory_path_in_repo = "/".join(root.split("/")[3:])
44
  path_in_repo = os.join(directory_path_in_repo, f)
45
+ local_file_path = os.path.join(local_dir, path_in_repo)
46
+ print("From: ", local_file_path, " to: ", path_in_repo)
47
+ upload_file(path_or_fileobj=local_file_path, path_in_repo=path_in_repo, repo_id=dst_repo, token=token, repo_type=repo_type)
48
 
49
 
50
  # Clean up to be nice with the environment