multimodalart HF staff commited on
Commit
33c8181
1 Parent(s): f6b4a60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ def clone(profile: gr.OAuthProfile, oauth_token: gr.OAuthToken, repo_git, repo_h
9
  cloned_repo = Repo.clone_from(repo_git, folder)
10
 
11
  #Upload to HF
12
- api = HfApi(token=oauth_token)
13
  api.create_repo(
14
  f"{profile.username}/{slugify(repo_hf)}",
15
  repo_type="space",
 
9
  cloned_repo = Repo.clone_from(repo_git, folder)
10
 
11
  #Upload to HF
12
+ api = HfApi(token=oauth_token.token)
13
  api.create_repo(
14
  f"{profile.username}/{slugify(repo_hf)}",
15
  repo_type="space",