File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -575,7 +575,8 @@ def get_concept_path(path: str) -> str | None:
575575
576576 def __download_dataset (self ):
577577 try :
578- huggingface_hub .login (token = self .train_config .secrets .huggingface_token , new_session = False )
578+ if self .train_config .secrets .huggingface_token != "" :
579+ huggingface_hub .login (token = self .train_config .secrets .huggingface_token )
579580 huggingface_hub .snapshot_download (repo_id = self .concept .path , repo_type = "dataset" )
580581 except Exception :
581582 traceback .print_exc ()
Original file line number Diff line number Diff line change @@ -575,7 +575,8 @@ def get_concept_path(path: str) -> str | None:
575575
576576 def __download_dataset (self ):
577577 try :
578- huggingface_hub .login (token = self .train_config .secrets .huggingface_token , new_session = False )
578+ if self .train_config .secrets .huggingface_token != "" :
579+ huggingface_hub .login (token = self .train_config .secrets .huggingface_token )
579580 huggingface_hub .snapshot_download (repo_id = self .concept .path , repo_type = "dataset" )
580581 except Exception :
581582 traceback .print_exc ()
You can’t perform that action at this time.
0 commit comments