Commit
·
d9b47e0
1
Parent(s):
7f7a666
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,9 +15,9 @@ def duplicate(source_repo, dst_repo, token, repo_type):
|
|
| 15 |
if repo_type in ["space", "dataset"]:
|
| 16 |
# For some reason create_repo does not allow repo_type="model"..., even if documentation says
|
| 17 |
# that's the default.
|
| 18 |
-
url = create_repo(dst_id, token=token, organization=org, repo_type=repo_type, space_sdk="gradio")
|
| 19 |
else:
|
| 20 |
-
url = create_repo(dst_id, token=token, organization=org)
|
| 21 |
|
| 22 |
# Clone source repo
|
| 23 |
endpoint = "https://huggingface.co/"
|
|
|
|
| 15 |
if repo_type in ["space", "dataset"]:
|
| 16 |
# For some reason create_repo does not allow repo_type="model"..., even if documentation says
|
| 17 |
# that's the default.
|
| 18 |
+
url = create_repo(dst_id, token=token, organization=org, repo_type=repo_type, space_sdk="gradio", private=False)
|
| 19 |
else:
|
| 20 |
+
url = create_repo(dst_id, token=token, organization=org, private=False)
|
| 21 |
|
| 22 |
# Clone source repo
|
| 23 |
endpoint = "https://huggingface.co/"
|