Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #319

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,30 +273,6 @@ azure_storage_options={
"credential": os.environ['AZURE_ACCOUNT_ACCESS_KEY']
}
dataset = ld.StreamingDataset("azure://my-bucket/my-data", storage_options=azure_storage_options)

# Read data from Hugging Face
hf_storage_options={
"use_auth_token": os.environ['HF_TOKEN']
}
dataset = StreamingDataset("hf://datasets/my-org/my-repo", storage_options=hf_storage_options)
# Read from a nested directory
dataset = StreamingDataset("hf://datasets/my-org/my-repo/dataset-1", storage_options=hf_storage_options)
```

### Upload Data to Hugging Face

To upload data to Hugging Face, you can use the `huggingface-cli` command. Below is the command format:
> For more information, checkout the [Hugging Face documentation](https://huggingface.co/docs/datasets/main/en/share#huggingface-cli-upload).

```sh
$ huggingface-cli upload [dataset_repo_id] [local_path] [path_in_repo] --repo-type dataset --token=[HF_TOKEN]
# Example: Uploading to the root of the repository
# huggingface-cli upload my-org/my-repo ./my-data --repo-type dataset --token=hf_****

# Example: Uploading to a nested directory within the repository
# huggingface-cli upload my-org/my-repo ./my-data dataset-1 --repo-type dataset --token=hf_****

# Note: If already logged in, you can skip the token
```

</details>
Expand Down
Loading