Datasets:
Fix: try get dataviewer work WIP
Browse files
utcd.py
CHANGED
|
@@ -49,7 +49,10 @@ class UtcdConfig(datasets.BuilderConfig):
|
|
| 49 |
return f'{prefix}{domain_str}'
|
| 50 |
|
| 51 |
|
| 52 |
-
|
|
|
|
|
|
|
|
|
|
| 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)
|