osanseviero HF staff commited on
Commit
707bc6c
1 Parent(s): 41c301c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,8 +22,8 @@ def duplicate(source_repo, dst_repo, token, repo_type):
22
  # Clone source repo
23
  endpoint = "huggingface.co/"
24
  if repo_type in ["space", "dataset"]:
25
- endpoint += repo_type
26
- full_path = f"https://{username}:{token}@{endpoint}/{source_repo}"
27
  local_dir = "hub/" + source_repo
28
 
29
  if repo_type in ["space", "dataset"]:
 
22
  # Clone source repo
23
  endpoint = "huggingface.co/"
24
  if repo_type in ["space", "dataset"]:
25
+ endpoint += repo_type + "/"
26
+ full_path = f"https://{username}:{token}@{endpoint}{source_repo}"
27
  local_dir = "hub/" + source_repo
28
 
29
  if repo_type in ["space", "dataset"]: