mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 12:10:09 +01:00
fix lint
This commit is contained in:
@@ -17,7 +17,8 @@ class DatasetContextConfig:
|
||||
data_files: Union[str, Sequence[str],
|
||||
Mapping[str, Union[str, Sequence[str]]]],
|
||||
download_mode: DownloadMode, cache_root_dir: str,
|
||||
use_streaming: bool, stream_batch_size: int, trust_remote_code: bool, **kwargs):
|
||||
use_streaming: bool, stream_batch_size: int,
|
||||
trust_remote_code: bool, **kwargs):
|
||||
|
||||
self._download_config = None
|
||||
self._data_meta_config = None
|
||||
|
||||
@@ -121,7 +121,8 @@ class GeneralMsDatasetTest(unittest.TestCase):
|
||||
f'please check the url: {py_script_url}'
|
||||
|
||||
# Load the dataset
|
||||
ds = MsDataset.load(py_script_file, subset_name='cola', split='train')
|
||||
ds = MsDataset.load(
|
||||
py_script_file, subset_name='cola', split='train')
|
||||
sample = next(iter(ds))
|
||||
logger.info(f'>>output of test_local_py_script:\n {sample}')
|
||||
assert sample
|
||||
|
||||
Reference in New Issue
Block a user