mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-03 21:00:08 +06:00
Replace deprecated update_repo_visibility (#35970)
This commit is contained in:
parent
9065cf0d92
commit
e60ae0d078
2
setup.py
2
setup.py
@ -117,7 +117,7 @@ _deps = [
|
|||||||
"fugashi>=1.0",
|
"fugashi>=1.0",
|
||||||
"GitPython<3.1.19",
|
"GitPython<3.1.19",
|
||||||
"hf-doc-builder>=0.3.0",
|
"hf-doc-builder>=0.3.0",
|
||||||
"huggingface-hub>=0.24.0,<1.0",
|
"huggingface-hub>=0.26.0,<1.0",
|
||||||
"importlib_metadata",
|
"importlib_metadata",
|
||||||
"ipadic>=1.0.0,<2.0",
|
"ipadic>=1.0.0,<2.0",
|
||||||
"isort>=5.5.4",
|
"isort>=5.5.4",
|
||||||
|
@ -24,7 +24,7 @@ deps = {
|
|||||||
"fugashi": "fugashi>=1.0",
|
"fugashi": "fugashi>=1.0",
|
||||||
"GitPython": "GitPython<3.1.19",
|
"GitPython": "GitPython<3.1.19",
|
||||||
"hf-doc-builder": "hf-doc-builder>=0.3.0",
|
"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",
|
"importlib_metadata": "importlib_metadata",
|
||||||
"ipadic": "ipadic>=1.0.0,<2.0",
|
"ipadic": "ipadic>=1.0.0,<2.0",
|
||||||
"isort": "isort>=5.5.4",
|
"isort": "isort>=5.5.4",
|
||||||
|
@ -2064,7 +2064,7 @@ class ModelOnTheFlyConversionTester(unittest.TestCase):
|
|||||||
self.assertEqual(discussion.title, "Adding `safetensors` variant of this model")
|
self.assertEqual(discussion.title, "Adding `safetensors` variant of this model")
|
||||||
|
|
||||||
# We now switch the repo visibility to public
|
# 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
|
# 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)
|
BertModel.from_pretrained(self.repo_name, use_safetensors=True, token=self.token)
|
||||||
|
Loading…
Reference in New Issue
Block a user