Commit
•
cecd3d3
1
Parent(s):
88dd322
Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,9 @@ def clone(profile: gr.OAuthProfile, oauth_token: gr.OAuthToken, repo_git, repo_h
|
|
11 |
print(cloned_repo)
|
12 |
#Upload to HF
|
13 |
api = HfApi(token=oauth_token)
|
|
|
|
|
|
|
14 |
api.upload_folder(
|
15 |
folder_path=folder,
|
16 |
repo_id=f"{profile.username}/{slugify(repo_hf)}",
|
|
|
11 |
print(cloned_repo)
|
12 |
#Upload to HF
|
13 |
api = HfApi(token=oauth_token)
|
14 |
+
api.create_repo(
|
15 |
+
f"{profile.username}/{slugify(repo_hf)}"
|
16 |
+
)
|
17 |
api.upload_folder(
|
18 |
folder_path=folder,
|
19 |
repo_id=f"{profile.username}/{slugify(repo_hf)}",
|