set up default category value for hle

This commit is contained in:
Flaick 2025-05-09 12:44:31 +00:00
parent ef3ca3ebc1
commit c850734aa2

View File

@ -9,7 +9,7 @@ from .base import BaseDataset
class HLEDataset(BaseDataset): class HLEDataset(BaseDataset):
@staticmethod @staticmethod
def load(path: str, category: str): def load(path: str, category: str | None = None):
dataset = load_dataset(path) dataset = load_dataset(path)
ds = dataset['test'].filter(lambda x: x['image'] == '') ds = dataset['test'].filter(lambda x: x['image'] == '')
if category: if category: