Skip to content

Commit 434990f

Browse files
committed
fix swift preprocessor (#1082)
1 parent c06153d commit 434990f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/llm/utils/preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __call__(self, dataset: HfDataset) -> HfDataset:
1919
history: List[History] = []
2020
for h in tqdm(old_history):
2121
if isinstance(h, str):
22-
h = ast.literal_eval(old_h)
22+
h = ast.literal_eval(h)
2323
elif h is None:
2424
h = []
2525
if len(h) > 0:

0 commit comments

Comments
 (0)