Skip to content

Commit

Permalink
revert to lazy loading
Browse files Browse the repository at this point in the history
  • Loading branch information
cyruszhang committed Feb 26, 2025
1 parent f8849d7 commit 2514b1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions data_juicer/core/data/ray_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,7 @@ def read_json(cls, paths: Union[str, List[str]]) -> RayDataset:
js.open_json
return read_json_stream(paths)
except AttributeError:
import ray.data
return ray.data.read_json(paths)
return rd.read_json(paths)


class JSONStreamDatasource(ds.JSONDatasource):
Expand Down

0 comments on commit 2514b1f

Please sign in to comment.