Signed-off-by: kit <101046518@qq.com>
This commit is contained in:
kit 2024-10-27 19:55:02 +08:00
parent ea699caeee
commit a7fa56a75b
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ async def main():
predictions.append(str(""))
df = pd.DataFrame({"Label": labels, "Prediction": predictions, "T/F": is_true})
df.to_excel("DABench_output.xlsx", index=False)
print(DA.eval_all(id_list, predictions))
logger.info(DA.eval_all(id_list, predictions))
if __name__ == "__main__":

View file

@ -15,7 +15,7 @@ async def main(id=0):
logger.info(result)
save_history(role=di)
_, is_correct = DA.eval(id, str(result))
print(f"Prediction is {'correct' if is_correct else 'incorrect'}.")
logger.info(f"Prediction is {'correct' if is_correct else 'incorrect'}.")
if __name__ == "__main__":