hysts HF staff commited on
Commit
15d58b2
1 Parent(s): c85d28f
Files changed (1) hide show
  1. 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)