We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c06153d commit 434990fCopy full SHA for 434990f
swift/llm/utils/preprocess.py
@@ -19,7 +19,7 @@ def __call__(self, dataset: HfDataset) -> HfDataset:
19
history: List[History] = []
20
for h in tqdm(old_history):
21
if isinstance(h, str):
22
- h = ast.literal_eval(old_h)
+ h = ast.literal_eval(h)
23
elif h is None:
24
h = []
25
if len(h) > 0:
0 commit comments