hysts HF staff commited on
Commit
c85d28f
1 Parent(s): 8e506ce
Files changed (1) hide show
  1. uploader.py +4 -0
uploader.py CHANGED
@@ -17,6 +17,10 @@ class Uploader:
17
  repo_type: str = 'model',
18
  private: bool = True,
19
  delete_existing_repo: bool = False) -> str:
 
 
 
 
20
  if not organization:
21
  organization = self.get_username()
22
  repo_id = f'{organization}/{repo_name}'
 
17
  repo_type: str = 'model',
18
  private: bool = True,
19
  delete_existing_repo: bool = False) -> str:
20
+ if not folder_path:
21
+ raise ValueError
22
+ if not repo_name:
23
+ raise ValueError
24
  if not organization:
25
  organization = self.get_username()
26
  repo_id = f'{organization}/{repo_name}'