You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/huggingface_hub/_commit_scheduler.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ class CommitScheduler:
50
50
revision (`str`, *optional*):
51
51
The revision of the repo to commit to. Defaults to `main`.
52
52
private (`bool`, *optional*):
53
-
Whether to make the repo private. Defaults to `False`. This value is ignored if the repo already exist.
53
+
Whether to make the repo private. If `None` (default), the repo will be public unless the organization's default is private. This value is ignored if the repo already exists.
54
54
token (`str`, *optional*):
55
55
The token to use to commit to the repo. Defaults to the token saved on the machine.
56
56
allow_patterns (`List[str]` or `str`, *optional*):
Copy file name to clipboardExpand all lines: src/huggingface_hub/_tensorboard_logger.py
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -75,8 +75,7 @@ class HFSummaryWriter(SummaryWriter):
75
75
repo_revision (`str`, *optional*):
76
76
The revision of the repo to which the logs will be pushed. Defaults to "main".
77
77
repo_private (`bool`, *optional*):
78
-
Whether to create a private repo or not. Defaults to False. This argument is ignored if the repo already
79
-
exists.
78
+
Whether to make the repo private. If `None` (default), the repo will be public unless the organization's default is private. This value is ignored if the repo already exists.
80
79
path_in_repo (`str`, *optional*):
81
80
The path to the folder in the repo where the logs will be pushed. Defaults to "tensorboard/".
82
81
repo_allow_patterns (`List[str]` or `str`, *optional*):
Copy file name to clipboardExpand all lines: src/huggingface_hub/fastai_utils.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -345,7 +345,7 @@ def push_to_hub_fastai(
345
345
*,
346
346
repo_id: str,
347
347
commit_message: str="Push FastAI model using huggingface_hub.",
348
-
private: bool=False,
348
+
private: Optional[bool]=None,
349
349
token: Optional[str] =None,
350
350
config: Optional[dict] =None,
351
351
branch: Optional[str] =None,
@@ -369,8 +369,9 @@ def push_to_hub_fastai(
369
369
The repository id for your model in Hub in the format of "namespace/repo_name". The namespace can be your individual account or an organization to which you have write access (for example, 'stanfordnlp/stanza-de').
370
370
commit_message (`str`, *optional*):
371
371
Message to commit while pushing. Will default to :obj:`"add model"`.
372
-
private (`bool`, *optional*, defaults to `False`):
372
+
private (`bool`, *optional*):
373
373
Whether or not the repository created should be private.
374
+
If `None` (default), will default to been public except if the organization's default is private.
374
375
token (`str`, *optional*):
375
376
The Hugging Face account token to use as HTTP bearer authorization for remote files. If :obj:`None`, the token will be asked by a prompt.
private (`bool`, *optional*, defaults to `False`):
3465
-
Whether the model repo should be private.
3464
+
private (`bool`, *optional*):
3465
+
Whether to make the repo private. If `None` (default), the repo will be public unless the organization's default is private. This value is ignored if the repo already exists.
3466
3466
repo_type (`str`, *optional*):
3467
3467
Set to `"dataset"` or `"space"` if uploading to a dataset or
3468
3468
space, `None` or `"model"` if uploading to a model. Default is
0 commit comments