matybohacek commited on
Commit
06c5237
1 Parent(s): 9fe6a2e

Update deepaction_v1.py

Browse files
Files changed (1) hide show
  1. deepaction_v1.py +6 -2
deepaction_v1.py CHANGED
@@ -36,8 +36,12 @@ class DeepActionV1(datasets.GeneratorBasedBuilder):
36
 
37
  def _split_generators(self, dl_manager):
38
  repo_url = "https://huggingface.co/datasets/faridlab/deepaction_v1"
39
- data_dir = dl_manager.download_and_extract(repo_url, use_auth_token=True) # Ensure token usage
40
-
 
 
 
 
41
  return [
42
  datasets.SplitGenerator(
43
  name=datasets.Split.TRAIN,
 
36
 
37
  def _split_generators(self, dl_manager):
38
  repo_url = "https://huggingface.co/datasets/faridlab/deepaction_v1"
39
+ # Initialize DownloadManager with use_auth_token
40
+ dl_manager = datasets.DownloadManager(
41
+ download_config=datasets.DownloadConfig(use_auth_token=True)
42
+ )
43
+ data_dir = dl_manager.download_and_extract(repo_url)
44
+
45
  return [
46
  datasets.SplitGenerator(
47
  name=datasets.Split.TRAIN,