Skip to content

Commit

Permalink
Do not set default hf in DownloadConfig.storage_options
Browse files Browse the repository at this point in the history
  • Loading branch information
albertvillanova committed Jul 23, 2024
1 parent 16fa442 commit e161dde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/datasets/download/download_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def __post_init__(self, use_auth_token):
FutureWarning,
)
self.token = use_auth_token
if "hf" not in self.storage_options:
self.storage_options["hf"] = {"token": self.token, "endpoint": config.HF_ENDPOINT}
# if "hf" not in self.storage_options:
# self.storage_options["hf"] = {"token": self.token, "endpoint": config.HF_ENDPOINT}

def copy(self) -> "DownloadConfig":
return self.__class__(**{k: copy.deepcopy(v) for k, v in self.__dict__.items()})
Expand Down

0 comments on commit e161dde

Please sign in to comment.