Spaces:
Runtime error
Runtime error
Commit
·
0fcc960
1
Parent(s):
96042a5
Update app.py
Browse files
app.py
CHANGED
@@ -6,10 +6,8 @@ from huggingface_hub.utils import build_hf_headers, hf_raise_for_status
|
|
6 |
ENDPOINT = ""
|
7 |
|
8 |
|
9 |
-
def duplicate(
|
10 |
try:
|
11 |
-
if not repo_type in REPO_TYPES:
|
12 |
-
raise ValueError("need to select valid repo type")
|
13 |
_ = whoami(token)
|
14 |
# ^ this will throw if token is invalid
|
15 |
|
|
|
6 |
ENDPOINT = ""
|
7 |
|
8 |
|
9 |
+
def duplicate(dst_repo, token):
|
10 |
try:
|
|
|
|
|
11 |
_ = whoami(token)
|
12 |
# ^ this will throw if token is invalid
|
13 |
|