Skip to content

Commit

Permalink
Merge pull request #10 from Wauplin/respect-repo-visibility
Browse files Browse the repository at this point in the history
[HF] Let server decide default repo visibility
  • Loading branch information
ncoop57 authored Dec 2, 2024
2 parents bb59c9a + fe575d1 commit 1405c84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fastdata/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def generate_to_hf(
max_workers: int = 64,
max_items_per_file: int = 100,
commit_every: Union[int, float] = 5,
private: bool = False,
private: Optional[bool] = None,
token: Optional[str] = None,
delete_files_after: bool = True,
) -> tuple[str, list[dict]]:
Expand All @@ -150,7 +150,7 @@ def generate_to_hf(
max_workers (int, optional): The maximum number of worker threads. Defaults to 64.
max_items_per_file (int, optional): The maximum number of items to save in each file. Defaults to 100.
commit_every (Union[int, float], optional): The number of minutes between each commit. Defaults to 5.
private (bool, optional): Whether the repository is private. Defaults to False.
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.
token (Optional[str], optional): The token to use to commit to the repo. Defaults to the token saved on the machine.
delete_files_after (bool, optional): Whether to delete files after processing. Defaults to True.
Expand Down
4 changes: 2 additions & 2 deletions nbs/00_core.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
" max_workers: int = 64,\n",
" max_items_per_file: int = 100,\n",
" commit_every: Union[int, float] = 5,\n",
" private: bool = False,\n",
" private: Optional[bool] = None,\n",
" token: Optional[str] = None,\n",
" delete_files_after: bool = True,\n",
" ) -> tuple[str, list[dict]]:\n",
Expand All @@ -186,7 +186,7 @@
" max_workers (int, optional): The maximum number of worker threads. Defaults to 64.\n",
" max_items_per_file (int, optional): The maximum number of items to save in each file. Defaults to 100.\n",
" commit_every (Union[int, float], optional): The number of minutes between each commit. Defaults to 5.\n",
" private (bool, optional): Whether the repository is private. Defaults to False.\n",
" 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.\n",
" token (Optional[str], optional): The token to use to commit to the repo. Defaults to the token saved on the machine.\n",
" delete_files_after (bool, optional): Whether to delete files after processing. Defaults to True.\n",
"\n",
Expand Down

0 comments on commit 1405c84

Please sign in to comment.