Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
Signed-off-by: kit <101046518@qq.com>
  • Loading branch information
kit committed Oct 27, 2024
1 parent ea699ca commit a7fa56a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/di/InfiAgent-DABench/run_InfiAgent-DABench_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down

0 comments on commit a7fa56a

Please sign in to comment.