Skip to content

Commit

Permalink
Let server decide default repo visibility (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wauplin authored Jan 10, 2025
1 parent 6a4be49 commit e8bf96f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/setfit/span/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ def push_to_hub(self, repo_id: str, polarity_repo_id: Optional[str] = None, **kw
Configuration object to be saved alongside the model weights.
commit_message (`str`, *optional*):
Message to commit while pushing.
private (`bool`, *optional*, defaults to `False`):
Whether the repository created should be private.
private (`bool`, *optional*):
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.
api_endpoint (`str`, *optional*):
The API endpoint to use when pushing the model to the hub.
token (`str`, *optional*):
Expand Down
4 changes: 2 additions & 2 deletions src/setfit/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,8 @@ def push_to_hub(self, repo_id: str, **kwargs) -> str:
Configuration object to be saved alongside the model weights.
commit_message (`str`, *optional*):
Message to commit while pushing.
private (`bool`, *optional*, defaults to `False`):
Whether the repository created should be private.
private (`bool`, *optional*):
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.
api_endpoint (`str`, *optional*):
The API endpoint to use when pushing the model to the hub.
token (`str`, *optional*):
Expand Down

0 comments on commit e8bf96f

Please sign in to comment.