Spaces:
Runtime error
Runtime error
Commit
·
684bb84
1
Parent(s):
b79f280
Update app_upload.py
Browse files- app_upload.py +3 -1
app_upload.py
CHANGED
@@ -20,6 +20,7 @@ class ModelUploader(Uploader):
|
|
20 |
upload_to: str,
|
21 |
private: bool,
|
22 |
delete_existing_repo: bool,
|
|
|
23 |
) -> str:
|
24 |
if not folder_path:
|
25 |
raise ValueError
|
@@ -38,7 +39,8 @@ class ModelUploader(Uploader):
|
|
38 |
repo_name,
|
39 |
organization=organization,
|
40 |
private=private,
|
41 |
-
delete_existing_repo=delete_existing_repo
|
|
|
42 |
|
43 |
|
44 |
def load_local_model_list() -> dict:
|
|
|
20 |
upload_to: str,
|
21 |
private: bool,
|
22 |
delete_existing_repo: bool,
|
23 |
+
input_token: str | None = None,
|
24 |
) -> str:
|
25 |
if not folder_path:
|
26 |
raise ValueError
|
|
|
39 |
repo_name,
|
40 |
organization=organization,
|
41 |
private=private,
|
42 |
+
delete_existing_repo=delete_existing_repo,
|
43 |
+
input_token=input_token)
|
44 |
|
45 |
|
46 |
def load_local_model_list() -> dict:
|