Datasets:

Modalities:
Text
Languages:
English
ArXiv:
Libraries:
Datasets
License:
StefanH commited on
Commit
5854a60
·
1 Parent(s): c99a5d7

Fix: try get dataviewer work WIP

Browse files
Files changed (1) hide show
  1. utcd.py +4 -1
utcd.py CHANGED
@@ -49,7 +49,10 @@ class UtcdConfig(datasets.BuilderConfig):
49
  return f'{prefix}{domain_str}'
50
 
51
 
52
- config_fnm = hf_hub_download(repo_id='claritylab/utcd', filename='_utcd_info.json', cache_dir=os.path.dirname(__file__))
 
 
 
53
  print('file name: ', config_fnm)
54
  with open(config_fnm) as f:
55
  _config = json.load(f)
 
49
  return f'{prefix}{domain_str}'
50
 
51
 
52
+ # for getting dataset viewer working on hub, don't have write access to /.cache
53
+ config_fnm = hf_hub_download(
54
+ repo_id='claritylab/utcd', filename='_utcd_info.json', cache_dir=os.path.dirname(__file__), repo_type='dataset'
55
+ )
56
  print('file name: ', config_fnm)
57
  with open(config_fnm) as f:
58
  _config = json.load(f)