Skip to content

Commit

Permalink
Merge pull request #25 from gizatechxyz/fix/anonymous-loader
Browse files Browse the repository at this point in the history
Fix loader
  • Loading branch information
Gonmeso committed May 30, 2024
2 parents 27545df + 881c0e0 commit 5dcfb1c
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 145 deletions.
3 changes: 2 additions & 1 deletion giza/datasets/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class DatasetsLoader:
"""

def __init__(self, use_cache=True, cache_dir=None):
self.fs = gcsfs.GCSFileSystem(verify=False)
# Token is set to "anon" to allow anonymous access to GCS as bucket should be public
self.fs = gcsfs.GCSFileSystem(verify=False, token="anon")
self.dataset_hub = DATASET_HUB
self.use_cache = use_cache
self.cache_dir = (
Expand Down
Loading

0 comments on commit 5dcfb1c

Please sign in to comment.