osanseviero commited on
Commit
0fcc960
·
1 Parent(s): 96042a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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(source_repo, dst_repo, token, repo_type):
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