lighthouse-emnlp2024 commited on
Commit
75ee0ca
·
verified ·
1 Parent(s): 40bf684

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -6
README.md CHANGED
@@ -43,15 +43,10 @@ Code: https://github.com/line/lighthouse
43
 
44
  ## Using Webdataset
45
  ```python
46
- import torch
47
  import webdataset as wds
48
- from huggingface_hub import get_token
49
- from torch.utils.data import DataLoader
50
 
51
-
52
- hf_token = get_token()
53
  url = "https://huggingface.co/datasets/lighthouse-emnlp2024/Clotho-Moment/resolve/main/train/train-{{001..002}}.tar"
54
- url = f"pipe:curl -s -L {url} -H 'Authorization:Bearer {hf_token}'"
55
  dataset = wds.WebDataset(url, shardshuffle=None).decode(wds.torch_audio)
56
 
57
  for sample in dataset:
 
43
 
44
  ## Using Webdataset
45
  ```python
 
46
  import webdataset as wds
 
 
47
 
 
 
48
  url = "https://huggingface.co/datasets/lighthouse-emnlp2024/Clotho-Moment/resolve/main/train/train-{{001..002}}.tar"
49
+ url = f"pipe:curl -s -L {url}"
50
  dataset = wds.WebDataset(url, shardshuffle=None).decode(wds.torch_audio)
51
 
52
  for sample in dataset: