From 0a47c4ee052e45e373a5b21c4bfa4d202dea87ec Mon Sep 17 00:00:00 2001 From: Prannaya Date: Fri, 2 Aug 2024 18:43:03 +0800 Subject: [PATCH] fix(dataset): change from_list into normal method in the alias --- walledeval/data/core.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/walledeval/data/core.py b/walledeval/data/core.py index 1d80d66..66419d4 100644 --- a/walledeval/data/core.py +++ b/walledeval/data/core.py @@ -87,10 +87,9 @@ def from_hub(self, name, config, split, self.model, **ds_kwargs ) - @classmethod - def from_list(cls, name: str, lst: list[dict]): + def from_list(self, name: str, lst: list[dict]): return HuggingFaceDataset.from_list( - name, lst + name, lst, self.model ) def from_csv(self, filenames: Union[str, list[str]], **csv_kwargs):