Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ def clone(profile: gr.OAuthProfile, oauth_token: gr.OAuthToken, repo_git, repo_h
|
|
| 11 |
api = HfApi(token=oauth_token)
|
| 12 |
api.upload_folder(
|
| 13 |
folder_path=cloned_repo,
|
| 14 |
-
repo_id={profile.username}/{slugify(repo_hf)},
|
| 15 |
repo_type="space",
|
| 16 |
)
|
| 17 |
return f"https://huggingface.co/{profile.username}/{slugify(repo_hf)}"
|
|
|
|
| 11 |
api = HfApi(token=oauth_token)
|
| 12 |
api.upload_folder(
|
| 13 |
folder_path=cloned_repo,
|
| 14 |
+
repo_id=f"{profile.username}/{slugify(repo_hf)}",
|
| 15 |
repo_type="space",
|
| 16 |
)
|
| 17 |
return f"https://huggingface.co/{profile.username}/{slugify(repo_hf)}"
|