mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
fix bugs when evaluate calm
This commit is contained in:
parent
bc2969dba8
commit
4289e3914e
@ -174,7 +174,8 @@ Answer (Yes or No ?):""",
|
||||
|
||||
def get_prompt(task_name, prompt_style, item, prompt_style_str=''):
|
||||
base = base_prompt_dict[prompt_style]
|
||||
|
||||
if item['bi_edges'] == []:
|
||||
item['bi_edges'] = ""
|
||||
prompt = prompt_style_str + base % (item['di_edges'], item['bi_edges'],
|
||||
item['treatment'], item['outcome'])
|
||||
return prompt
|
||||
|
Loading…
Reference in New Issue
Block a user