mirror of
https://github.com/radixark/miles.git
synced 2026-10-02 07:14:53 +08:00
fix bug on data metadata initialization
This commit is contained in:
+1
-1
@@ -41,7 +41,7 @@ class JsonlDataset:
|
||||
Sample(
|
||||
prompt=prompt,
|
||||
label=data[label_key] if label_key is not None else None,
|
||||
metadata=data.get(metadata_key, None),
|
||||
metadata=data.get(metadata_key) or {},
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user