Dataset Viewer issue

#5
by axiong - opened

The dataset viewer is not working.

Error details:

Error code:   StreamingRowsError
Exception:    FileNotFoundError
Message:      [Errno 2] No such file or directory: 'https://huggingface.co/datasets/axiong/pmc_oa/resolve/main/pmc_oa.jsonl'
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 263, in get_rows_or_raise
                  return get_rows(
                File "/src/services/worker/src/worker/utils.py", line 204, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 241, in get_rows
                  rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1353, in __iter__
                  for key, example in ex_iterable:
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 207, in __iter__
                  yield from self.generate_examples_fn(**self.kwargs)
                File "/tmp/modules-cache/datasets_modules/datasets/axiong--pmc_oa/2af854db8e519e028d090d2bc0fcb75e453550c24149578c3c2e82901bcff636/pmc_oa.py", line 112, in _generate_examples
                  with jsonlines.open(filepath) as reader:
                File "/src/services/worker/.venv/lib/python3.9/site-packages/jsonlines/jsonlines.py", line 627, in open
                  fp = builtins.open(file, mode=mode + "t", encoding=encoding)
              FileNotFoundError: [Errno 2] No such file or directory: 'https://huggingface.co/datasets/axiong/pmc_oa/resolve/main/pmc_oa.jsonl'

cc @albertvillanova @lhoestq @severo .

albertvillanova changed discussion status to closed

Sign up or log in to comment