hysts
commited on
Commit
•
7e42600
1
Parent(s):
a032d21
Fix
Browse files- app_upload.py +2 -0
app_upload.py
CHANGED
@@ -21,6 +21,8 @@ class LoRAModelUploader(Uploader):
|
|
21 |
private: bool,
|
22 |
delete_existing_repo: bool,
|
23 |
) -> str:
|
|
|
|
|
24 |
if not repo_name:
|
25 |
repo_name = pathlib.Path(folder_path).name
|
26 |
repo_name = slugify.slugify(repo_name)
|
|
|
21 |
private: bool,
|
22 |
delete_existing_repo: bool,
|
23 |
) -> str:
|
24 |
+
if not folder_path:
|
25 |
+
raise ValueError
|
26 |
if not repo_name:
|
27 |
repo_name = pathlib.Path(folder_path).name
|
28 |
repo_name = slugify.slugify(repo_name)
|