Skip to content

Commit ebae87d

Browse files
vaporhugblack-yt
andcommitted
fix a bug of PHYSICS benchmark
co-authored-by: black-yt <xu_wanghan@sjtu.edu.cn>
1 parent 3554bec commit ebae87d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scieval/dataset/PHYSICS/PHYSICS.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def build_prompt(self, line):
119119
Problem: {{prompt}}"""
120120

121121
# 获取问题文本(支持 Series 或 dict)
122-
prompt_text = line["question"] if isinstance(line, dict) else line
122+
prompt_text = line["question"]
123123

124124
# 应用指令模板
125125
prompt_text = Template(INSTRUCTION_TEMPLATE).render(prompt=prompt_text)

0 commit comments

Comments
 (0)