Update load_tasks doc
This commit is contained in:
parent
835ab5a81b
commit
da78bbfd16
|
@ -180,15 +180,7 @@ def load_info(repo_id: str, version: str, local_dir: Path) -> dict:
|
||||||
|
|
||||||
|
|
||||||
def load_tasks(repo_id: str, version: str, local_dir: Path) -> dict:
|
def load_tasks(repo_id: str, version: str, local_dir: Path) -> dict:
|
||||||
"""tasks contains all the tasks of the dataset, indexed by their task_index.
|
"""tasks contains all the tasks of the dataset, indexed by their task_index."""
|
||||||
|
|
||||||
Example:
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"0": "Pick the Lego block and drop it in the box on the right."
|
|
||||||
}
|
|
||||||
```
|
|
||||||
"""
|
|
||||||
fpath = hf_hub_download(
|
fpath = hf_hub_download(
|
||||||
repo_id, filename="meta/tasks.json", local_dir=local_dir, repo_type="dataset", revision=version
|
repo_id, filename="meta/tasks.json", local_dir=local_dir, repo_type="dataset", revision=version
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue