Skip to content

Commit

Permalink
feat: 🎸 ensure the supported datasets are not private
Browse files Browse the repository at this point in the history
  • Loading branch information
severo committed Jan 30, 2023
1 parent a8648f2 commit c3905d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libs/libcommon/src/libcommon/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,4 +216,8 @@ def check_support(


def get_supported_datasets(hf_endpoint: str, hf_token: Optional[str] = None) -> list[str]:
return [d.id for d in HfApi(endpoint=hf_endpoint, token=hf_token).list_datasets() if d.id is not None]
return [
d.id
for d in HfApi(endpoint=hf_endpoint, token=hf_token).list_datasets()
if d.id is not None and d.private is False
]

0 comments on commit c3905d4

Please sign in to comment.