Skip to content

Commit

Permalink
fix(dataset): change from_list into normal method in the alias
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePyProgrammer committed Aug 2, 2024
1 parent 0b3db84 commit 0a47c4e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions walledeval/data/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 0a47c4e

Please sign in to comment.