Spaces:
Runtime error
Runtime error
Commit
•
1305809
1
Parent(s):
6ef12c8
Update uploader.py
Browse files- uploader.py +1 -3
uploader.py
CHANGED
@@ -31,9 +31,7 @@ class Uploader:
|
|
31 |
self.api.delete_repo(repo_id, repo_type=repo_type)
|
32 |
except Exception:
|
33 |
pass
|
34 |
-
try:
|
35 |
-
api = HfAPi(token=self.hf_token if self.hf_token else input_token)
|
36 |
-
|
37 |
api.create_repo(repo_id, repo_type=repo_type, private=private)
|
38 |
api.upload_folder(repo_id=repo_id,
|
39 |
folder_path=folder_path,
|
|
|
31 |
self.api.delete_repo(repo_id, repo_type=repo_type)
|
32 |
except Exception:
|
33 |
pass
|
34 |
+
try:
|
|
|
|
|
35 |
api.create_repo(repo_id, repo_type=repo_type, private=private)
|
36 |
api.upload_folder(repo_id=repo_id,
|
37 |
folder_path=folder_path,
|