Skip to content

Commit

Permalink
Replace deprecated update_repo_visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Wauplin committed Jan 30, 2025
1 parent 365fecb commit b05a152
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"fugashi>=1.0",
"GitPython<3.1.19",
"hf-doc-builder>=0.3.0",
"huggingface-hub>=0.24.0,<1.0",
"huggingface-hub>=0.26.0,<1.0",
"importlib_metadata",
"ipadic>=1.0.0,<2.0",
"isort>=5.5.4",
Expand Down
2 changes: 1 addition & 1 deletion src/transformers/dependency_versions_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"fugashi": "fugashi>=1.0",
"GitPython": "GitPython<3.1.19",
"hf-doc-builder": "hf-doc-builder>=0.3.0",
"huggingface-hub": "huggingface-hub>=0.24.0,<1.0",
"huggingface-hub": "huggingface-hub>=0.26.0,<1.0",
"importlib_metadata": "importlib_metadata",
"ipadic": "ipadic>=1.0.0,<2.0",
"isort": "isort>=5.5.4",
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/test_modeling_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1981,7 +1981,7 @@ def test_safetensors_on_the_fly_wrong_user_opened_pr(self):
self.assertEqual(discussion.title, "Adding `safetensors` variant of this model")

# We now switch the repo visibility to public
self.api.update_repo_visibility(self.repo_name, private=False)
self.api.update_repo_settings(self.repo_name, private=False)

# We once again call from_pretrained, which should call the bot to open a PR
BertModel.from_pretrained(self.repo_name, use_safetensors=True, token=self.token)
Expand Down

0 comments on commit b05a152

Please sign in to comment.