MCPcopy Create free account
hub / github.com/OpenBMB/AgentCPM-GUI / verify

Function verify

eval/grounding_eval/code/Aguvis/bbox2text_eval_aguvis.py:83–90  ·  view source on GitHub ↗

接受模型的字符串输入,判断是否正确

(response, ground_truth)

Source from the content-addressed store, hash-verified

81 return response.strip("\n").replace(" ","")
82
83async def verify(response, ground_truth):
84 """
85 接受模型的字符串输入,判断是否正确
86 """
87 if response == ground_truth:
88 return 1
89 else:
90 return 0
91
92async def process_item_async(item, client, model_name, semaphore):
93 async with semaphore:

Callers 1

process_item_asyncFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected