not-lain commited on
Commit
0febe47
·
verified ·
1 Parent(s): c1694e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -10,7 +10,7 @@ ENDPOINT = "https://huggingface.co"
10
  REPO_TYPES = ["model", "dataset", "space"]
11
 
12
 
13
- def duplicate(source_repo, dst_repo, repo_type, private,oauth_token: gr.OAuthToken | None):
14
  try:
15
  if not repo_type in REPO_TYPES:
16
  raise ValueError("need to select valid repo type")
@@ -53,8 +53,7 @@ interface = gr.Interface(
53
  search_type=["model", "dataset", "space"],
54
  sumbit_on_select=False,
55
  ),
56
- gr.Textbox(placeholder="Destination repository (e.g. osanseviero/dst)"),
57
- gr.Textbox(placeholder="Write access token", type="password"),
58
  gr.Dropdown(choices=REPO_TYPES, value="model"),
59
  gr.Checkbox(label="Make new repo private?"),
60
  ],
 
10
  REPO_TYPES = ["model", "dataset", "space"]
11
 
12
 
13
+ def duplicate(source_repo, dst_repo, repo_type, private,):
14
  try:
15
  if not repo_type in REPO_TYPES:
16
  raise ValueError("need to select valid repo type")
 
53
  search_type=["model", "dataset", "space"],
54
  sumbit_on_select=False,
55
  ),
56
+ gr.Textbox(placeholder="Destination repository (e.g. osanseviero/dst)"),
 
57
  gr.Dropdown(choices=REPO_TYPES, value="model"),
58
  gr.Checkbox(label="Make new repo private?"),
59
  ],