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

Function verify

eval/grounding_eval/code/GPT-4o/bbox2text_eval.py:82–90  ·  view source on GitHub ↗

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

(response, ground_truth)

Source from the content-addressed store, hash-verified

80 return response.strip("\n").replace(" ","")
81
82async def verify(response, ground_truth):
83 """
84 接受模型的字符串输入,判断是否正确
85 """
86 print(response, ground_truth)
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