Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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",
|