接受模型的字符串输入,判断是否正确
(response, ground_truth)
| 80 | return response.strip("\n").replace(" ","") |
| 81 | |
| 82 | async 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 | |
| 92 | async def process_item_async(item, client, model_name, semaphore): |
| 93 | async with semaphore: |
no outgoing calls
no test coverage detected