Spaces:
Sleeping
Sleeping
osanseviero
commited on
Commit
•
88ea3ec
1
Parent(s):
fc9e525
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def duplicate(source_repo, dst_repo, token, repo_type):
|
|
23 |
endpoint = "huggingface.co/"
|
24 |
if repo_type in ["space", "dataset"]:
|
25 |
endpoint += repo_type
|
26 |
-
full_path = f"
|
27 |
local_dir = "hub/" + source_repo
|
28 |
|
29 |
if repo_type in ["space", "dataset"]:
|
|
|
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"]:
|